diff options
Diffstat (limited to 'gis-observation-map')
-rwxr-xr-x | gis-observation-map | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gis-observation-map b/gis-observation-map index ea057e0..8fc48de 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -312,6 +312,8 @@ for geom in args.geometry: feature = layer.GetNextFeature() while feature is not None: geometry = feature.GetGeometryRef() + if not geometry.IsValid(): + raise Exception('Invalid geometry') geometry.Transform(transform_srs) if args.margin is None: |