Fix lost of the last iteration in cycle
This commit is contained in:
parent
fc376dfa7a
commit
55dbcf8c7a
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ def import_osm():
|
|||
polygons = []
|
||||
for way in outer:
|
||||
rings = [way_to_wkt(nodes, way['nodes'])]
|
||||
for i in range(len(inner)-1, 0, -1):
|
||||
for i in range(len(inner)-1, -1, -1):
|
||||
if bbox_contains(way['bbox'], inner[i]['bbox']):
|
||||
rings.append(way_to_wkt(nodes, inner[i]['nodes']))
|
||||
del inner[i]
|
||||
|
|
Loading…
Add table
Reference in a new issue