Skip to content

Commit

Permalink
iterate over the .geoms property (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored May 19, 2022
1 parent 8a7ec57 commit 45d754d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoviews/operation/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _process_element(self, element):
if isinstance(geom, Polygon) and geom.area < 1e-15:
continue
elif isinstance(geom, MultiPolygon):
polys = [g for g in geom if g.area > 1e-15]
polys = [g for g in geom.geoms if g.area > 1e-15]
if not polys:
continue
geom = MultiPolygon(polys)
Expand Down

0 comments on commit 45d754d

Please sign in to comment.