fix orient again

This commit is contained in:
Laura Klünder 2017-11-13 21:03:22 +01:00
parent a9b1ed1914
commit dfdeb784aa

View file

@ -167,7 +167,9 @@ class AltitudeArea(LevelGeometryMixin, models.Model):
tuple(h.geometry for h in space.holes.all()))
))
areas = orient(unary_union(areas+list(door.geometry for door in level.doors.all())))
areas = MultiPolygon(tuple(orient(polygon) for polygon in assert_multipolygon(
unary_union(areas+list(door.geometry for door in level.doors.all())))
))
# collect all stairs on this level
for space in level.spaces.all():