Skip to content

Commit

Permalink
Fix MultiPolygon not iterable
Browse files Browse the repository at this point in the history
Signed-off-by: Xiyu Oh <[email protected]>
  • Loading branch information
xiyuoh committed May 30, 2024
1 parent 19784b0 commit 668a96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmf_building_map_tools/building_map/floor.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def triangulate_polygon(self, polygon, triangles):
plt.plot(poly_x, poly_y, 'b', linewidth=4)

elif geom.geom_type == 'MultiPolygon':
for poly in list(geom):
for poly in list(geom.geoms):
self.triangulate_polygon(poly, triangles)

elif geom.geom_type == 'GeometryCollection':
Expand Down

0 comments on commit 668a96d

Please sign in to comment.