space without altitudeareas? location unreachable!
This commit is contained in:
parent
fa2978feca
commit
6a4c40a3b4
1 changed files with 2 additions and 0 deletions
|
@ -474,6 +474,8 @@ class RouterSpace(BaseRouterProxy):
|
|||
|
||||
def altitudearea_for_point(self, point):
|
||||
point = Point(point.x, point.y)
|
||||
if not self.altitudeareas:
|
||||
raise LocationUnreachable
|
||||
for area in self.altitudeareas:
|
||||
if area.geometry_prep.intersects(point):
|
||||
return area
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue