Skip to content

Commit 01bfee5

Browse files
committed
Fix deprecation warning in MOC aggregator
Shapely will soon stop allowing MultiPolygon objects to be treated as lists, so we want to use the `.geoms` property for this purpose instead.
1 parent 051553c commit 01bfee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geometric_features/aggregation/ocean/moc_basins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _remove_small_polygons(fc, minArea):
107107
else:
108108
# a MultiPolygon
109109
outPolygons = []
110-
for polygon in featureShape:
110+
for polygon in featureShape.geoms:
111111
if polygon.area > minArea:
112112
outPolygons.append(polygon)
113113
else:

0 commit comments

Comments
 (0)