You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mosstool/map/osm/building.py
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,9 @@ def _make_raw_aoi(self):
191
191
ifnodes[0] !=nodes[-1]: # should be a ring
192
192
invalid_way_cnt+=1
193
193
continue
194
+
iflen(nodes) <3:
195
+
invalid_way_cnt+=1
196
+
continue
194
197
geo=sPolygon([nodes_dict[node] fornodeinnodes])
195
198
ifgeo.is_valid:
196
199
self.aois.append(
@@ -232,6 +235,9 @@ def _make_raw_aoi(self):
232
235
if (
233
236
nodes_ringandnotnodes_line
234
237
): # Multiple ring-forming edges: It may be combined into a polygon by union; it may also be separated into multiple shapes, in which case it will be split into multiple Aoi
0 commit comments