do not merge obstacles. this seems to get to complicated for libgeos
This commit is contained in:
parent
7a02f58175
commit
7c726ef845
4 changed files with 29 additions and 19 deletions
|
@ -105,9 +105,10 @@ class MapRenderer:
|
|||
|
||||
# add obstacles after everything related to ground for the nice right order
|
||||
for i, altitudearea in enumerate(geoms.altitudeareas):
|
||||
for height, obstacle in altitudearea.obstacles.items():
|
||||
engine.add_geometry(obstacle, fill=FillAttribs('#B7B7B7'),
|
||||
stroke=StrokeAttribs('#888888', 0.05, min_px=0.2), category='obstacles')
|
||||
for height, height_obstacles in altitudearea.obstacles.items():
|
||||
for obstacle in height_obstacles:
|
||||
engine.add_geometry(obstacle, fill=FillAttribs('#B7B7B7'),
|
||||
stroke=StrokeAttribs('#888888', 0.05, min_px=0.2), category='obstacles')
|
||||
|
||||
# add walls, stroke_px makes sure that all walls are at least 1px thick on all zoom levels,
|
||||
walls = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue