Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonathan Lambrechts
seamsh
Commits
699d2598
Commit
699d2598
authored
Mar 10, 2022
by
Jonathan Lambrechts
Browse files
filter empty geometries in shapefiles
parent
d0cd4e4c
Pipeline
#10462
passed with stages
in 4 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
seamsh/geometry.py
View file @
699d2598
...
...
@@ -243,6 +243,8 @@ class Domain:
"' not found in shapefile"
)
layerproj
=
layer
.
GetSpatialRef
()
for
i
in
layer
:
if
i
.
geometry
()
is
None
:
continue
phys
=
(
i
.
GetField
(
physfield
)
if
not
(
physfield
is
None
)
else
"boundary"
)
self
.
_add_geometry
(
i
.
geometry
(),
phys
,
layerproj
,
curve_type
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment