Commit 699d2598 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

filter empty geometries in shapefiles

parent d0cd4e4c
Pipeline #10462 passed with stages
in 4 minutes and 22 seconds
......@@ -243,6 +243,8 @@ class Domain:
"' not found in shapefile")
layerproj = layer.GetSpatialRef()
for i in layer:
if i.geometry() is None :
phys = (i.GetField(physfield)
if not (physfield is None) else "boundary")
self._add_geometry(i.geometry(), phys, layerproj, curve_type,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment