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 2bf92f3 commit 2fb0b16
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 @@ -300,6 +300,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 2fb0b16

Please sign in to comment.