Skip to content
Permalink
Browse files
Add geometryType() method to root Table class
  • Loading branch information
nicogodet authored and github-actions committed Nov 3, 2021
1 parent ec467dd commit 1d8f51178786f023c7987ea894f8636e4c77317b
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/db_manager/db_plugins/plugin.py
@@ -777,6 +777,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

0 comments on commit 1d8f511

Please sign in to comment.