Skip to content

Commit 6b1b347

Browse files
committed
Update example script for shapely 2.0
1 parent bdbd986 commit 6b1b347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/setup_ocean_region_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def remove_small_polygons(fc, minArea):
207207
else:
208208
# a MultiPolygon
209209
outPolygons = []
210-
for polygon in featureShape:
210+
for polygon in featureShape.geoms:
211211
if polygon.area > minArea:
212212
outPolygons.append(polygon)
213213
else:

0 commit comments

Comments
 (0)