graph building: don't crash because of nodes in access restriction columns
This commit is contained in:
parent
d1c47cbe40
commit
a6d9c7204d
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class Router:
|
||||||
for space in level.spaces.all():
|
for space in level.spaces.all():
|
||||||
# create space geometries
|
# create space geometries
|
||||||
accessible_geom = space.geometry.difference(unary_union(
|
accessible_geom = space.geometry.difference(unary_union(
|
||||||
tuple(column.geometry for column in space.columns.all()) +
|
tuple(column.geometry for column in space.columns.all() if column.access_restriction_id is None) +
|
||||||
tuple(hole.geometry for hole in space.holes.all()) +
|
tuple(hole.geometry for hole in space.holes.all()) +
|
||||||
((buildings_geom, ) if space.outside else ())
|
((buildings_geom, ) if space.outside else ())
|
||||||
))
|
))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue