Skip to content

Commit

Permalink
Actually fix QgsWkbTypes.GeometryType in QGIS 3.28...
Browse files Browse the repository at this point in the history
Turns out `QgsWkbTypes.GeometryType.Null` are new additions,
we have to use `QgsWkbTypes.GeometryType.NullGeometry`.

Tested in QGIS 3.28 docker image.
  • Loading branch information
suricactus committed Jan 9, 2024
1 parent c1c230e commit 4fae445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libqfieldsync/offliners.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def convert_to_offline(
from qgis.core import QgsWkbTypes

no_geometry_types = [
QgsWkbTypes.GeometryType.Null,
QgsWkbTypes.GeometryType.Unknown,
QgsWkbTypes.GeometryType.NullGeometry,
QgsWkbTypes.GeometryType.UnknownGeometry,
]

if layer.geometryType() not in no_geometry_types:
Expand Down

0 comments on commit 4fae445

Please sign in to comment.