Skip to content

Commit 771b192

Browse files
committed
Update MOC basins aggregator for shapely 2.0
1 parent 6b1b347 commit 771b192

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
@@ -99,7 +99,7 @@ def _remove_small_polygons(fc, minArea):
9999
fcOut.add_feature(copy.deepcopy(feature))
100100
else:
101101
featureShape = shapely.geometry.shape(geom)
102-
if featureShape.type == 'Polygon':
102+
if featureShape.geom_type == 'Polygon':
103103
if featureShape.area > minArea:
104104
add = True
105105
else:

0 commit comments

Comments
 (0)