Skip to content

Commit

Permalink
[fix] pyslm.visualise
Browse files Browse the repository at this point in the history
Visualise correctly MultiPolygon when dealing with shapely v2.0
  • Loading branch information
drlukeparry committed Dec 8, 2023
1 parent a0f2988 commit 99c7a47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyslm/visualise.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def plotPolygon(polygons: List[Any], zPos = 0.0,

contourCoords = []

if isinstance(polygons, MultiPolygon):
polygons = list(polygons.geoms)

if not isinstance(polygons, Iterable):
polygons = [polygons]

Expand Down

0 comments on commit 99c7a47

Please sign in to comment.