Skip to content

Commit d7f9c2d

Browse files
phobsonJRFeldman
authored andcommitted
update multipolygon usage
1 parent 408480e commit d7f9c2d

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)