Skip to content

Commit be428dc

Browse files
xiyuohluca-della-vedova
authored andcommitted
Fix MultiPolygon not iterable (#496)
Signed-off-by: Xiyu Oh <[email protected]>
1 parent 9fc8d4b commit be428dc

File tree

1 file changed

+1
-1
lines changed
  • rmf_building_map_tools/building_map

1 file changed

+1
-1
lines changed

rmf_building_map_tools/building_map/floor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def triangulate_polygon(self, polygon, triangles):
133133
plt.plot(poly_x, poly_y, 'b', linewidth=4)
134134

135135
elif geom.geom_type == 'MultiPolygon':
136-
for poly in list(geom):
136+
for poly in list(geom.geoms):
137137
self.triangulate_polygon(poly, triangles)
138138

139139
elif geom.geom_type == 'GeometryCollection':

0 commit comments

Comments
 (0)