Skip to content

Commit

Permalink
Fix shapely mp geometry issue. Mp geometrie are no longer sequences i…
Browse files Browse the repository at this point in the history
…n Shapely 2.0 forward.
  • Loading branch information
vedgell committed Mar 27, 2024
1 parent ffe22c3 commit c698ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geophys_utils/_netcdf_grid_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def discard_internal_polygons(geometry):
'''
if type(geometry) == MultiPolygon:
polygon_list = []
for polygon in geometry:
for polygon in geometry.geoms:
polygon = Polygon(polygon.exterior)
polygon_is_contained = False
for list_polygon in polygon_list:
Expand Down

0 comments on commit c698ee9

Please sign in to comment.