Skip to content

Commit 1b8bcb2

Browse files
committed
update multipolygon usage
1 parent d5db9a7 commit 1b8bcb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygridtools/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def polygon(polyverts, min_points=3):
6666
def _explode_geom(row):
6767
# save each geo part in its own row
6868
gsr = geopandas.GeoSeries([
69-
poly for poly in geometry.shape(row['geometry'])
69+
poly for poly in geometry.shape(row['geometry']).geoms
7070
])
7171
meta = row['properties']
7272
return geopandas.GeoDataFrame(meta, geometry=gsr, index=gsr.index)

0 commit comments

Comments
 (0)