Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add geometryType() method to root Table class
  • Loading branch information
nicogodet authored and nyalldawson committed Nov 4, 2021
1 parent c47fc8a commit 8396245
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/db_manager/db_plugins/plugin.py
Expand Up @@ -776,6 +776,9 @@ def toMapLayer(self, geometryType=None, crs=None):
return QgsRasterLayer(uri, self.name, provider)
return QgsVectorLayer(uri, self.name, provider)

def geometryType(self):
pass

def getValidQgisUniqueFields(self, onlyOne=False):
""" list of fields valid to load the table as layer in QGIS canvas.
QGIS automatically search for a valid unique field, so it's
Expand Down

0 comments on commit 8396245

Please sign in to comment.