Skip to content

Commit

Permalink
[DBManager] Avoid unhandled exception on a untyped geometry (wkbUnkno…
Browse files Browse the repository at this point in the history
…wn) layer (#16730)
  • Loading branch information
rouault committed Jun 21, 2017
1 parent 5ef70f1 commit 6cfd1a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/db_manager/db_plugins/gpkg/connector.py
Expand Up @@ -299,6 +299,7 @@ def getVectorTables(self, schema=None):
geomtype_flatten = ogr.GT_Flatten(geomtype)
else:
geomtype_flatten = geomtype
geomname = 'GEOMETRY'
if geomtype_flatten == ogr.wkbPoint:
geomname = 'POINT'
elif geomtype_flatten == ogr.wkbLineString:
Expand Down

0 comments on commit 6cfd1a0

Please sign in to comment.