Skip to content

Commit c3ec792

Browse files
Update script.py
1 parent 2057dbb commit c3ec792

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137

138138
vector = gpd.read_file(vector_output)
139139
clipped = gpd.clip(vector,boundary)
140+
clipped = clipped[clipped.geometry.type != 'GeometryCollection']
140141

141142
# Print to a gpkg file
142143
clipped.to_file(os.path.join(outputs_path, location + '_clip.gpkg'),driver='GPKG',index=False)

0 commit comments

Comments
 (0)