use unwrap_geom() instead of .wrapped_geom

to catch cases where the value is not wrapped
This commit is contained in:
Gwendolyn 2023-12-17 14:54:43 +01:00
parent 2ecef02a9e
commit d16a477c1b

View file

@ -219,7 +219,7 @@ def get_space_geometries_result(request, space_id: int, update_cache_key: str, u
if request.user_permissions.can_access_base_mapdata:
doors = [door for door in level.doors.filter(Door.q_for_request(request)).all()
if door.geometry.wrapped_geom.intersects(space.geometry.wrapped_geom)]
if unwrap_geom(door.geometry).intersects(unwrap_geom(space.geometry))]
doors_space_geom = unary_union(
[unwrap_geom(door.geometry) for door in doors] +
[unwrap_geom(space.geometry)]