Skip to content

Commit

Permalink
Fix MultiPolygon not iterable (#496)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiyu Oh <xiyu@openrobotics.org>
(cherry picked from commit 34b38e1)
  • Loading branch information
xiyuoh committed Jun 4, 2024
1 parent 620bb9f commit d220da8
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 d220da8

Please sign in to comment.