obstacles should not be able to “expand” an altitude area outside spaces
This commit is contained in:
parent
760b045345
commit
fdce9a9ab1
1 changed files with 2 additions and 2 deletions
|
@ -388,8 +388,8 @@ class AltitudeArea(LevelGeometryMixin, models.Model):
|
||||||
remaining_space = unary_union(
|
remaining_space = unary_union(
|
||||||
tuple(c.geometry for c in space.columns.all()) +
|
tuple(c.geometry for c in space.columns.all()) +
|
||||||
tuple(o.geometry for o in space.obstacles.all()) +
|
tuple(o.geometry for o in space.obstacles.all()) +
|
||||||
tuple(o.buffered_geometry for o in space.lineobstacles.all()))
|
tuple(o.buffered_geometry for o in space.lineobstacles.all())
|
||||||
remaining_space = remaining_space.difference(
|
).intersection(geom).difference(
|
||||||
unary_union(tuple(h.geometry for h in space.holes.all()))
|
unary_union(tuple(h.geometry for h in space.holes.all()))
|
||||||
)
|
)
|
||||||
if remaining_space.is_empty:
|
if remaining_space.is_empty:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue