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 <[email protected]>
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
xiyuoh authored and luca-della-vedova committed Nov 7, 2024
1 parent 9fc8d4b commit 6480104
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 6480104

Please sign in to comment.