Skip to content

Commit

Permalink
Merge pull request #9 from WhereGroup/add_warning_curve_geoms_in_gpgk
Browse files Browse the repository at this point in the history
skip not supported layers in curve check
  • Loading branch information
pgipper authored Feb 7, 2023
2 parents 5bec453 + 230bbfc commit 7bffcbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def class_for_name(module_name: str, class_name: str):

def warnAboutCurveGeoms(layers: Iterable[QgsMapLayer]):
for layer in layers:
if not isLayerSupported(layer):
continue
if layer.storageType().upper() in ['GPKG', 'SQLITE'] and QgsWkbTypes.isCurvedType(layer.wkbType()):
txt = tr('The layer "{layername}" has an unsupported geometry type: '
'"Circularstring", "CompoundCurve", "CurvePolygon", "MultiCurve", "MultiSurface", '
Expand Down

0 comments on commit 7bffcbb

Please sign in to comment.