do not merge obstacles. this seems to get to complicated for libgeos

This commit is contained in:
Laura Klünder 2017-12-21 19:38:31 +01:00
parent 7a02f58175
commit 7c726ef845
4 changed files with 29 additions and 19 deletions

View file

@ -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