You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is since we allowed multiple rules. See #1903 (comment)
The stacktrace is:
Caused by: java.lang.IndexOutOfBoundsException: Index: 0
at java.util.Collections$EmptyList.get(Collections.java:4456)
at java.util.Collections$UnmodifiableList.get(Collections.java:1311)
at com.graphhopper.routing.lm.LandmarkStorage.findBorderEdgeIds(LandmarkStorage.java:467)
at com.graphhopper.routing.lm.LandmarkStorage.createLandmarks(LandmarkStorage.java:263)
So, we probably need some test code to cover this scenario too. @otbutz do you have an idea what could go wrong and why we expected this not to happen for landmarks? Should we just do:
That should fix it. I was under the impression that the landmark areas file would cover the whole globe and therefor yield an applicable ID for each point.
Ok, thanks for confirmation. Yes, we could provide one globally, but should still prepare for the general (user provided) case and approach this more defensive.
What do you mean? The area splitting makes it impossible to route between the defined areas but improves speed within the areas significantly, so further reducing the area might not be of much use.
Activity
otbutz commentedon Apr 27, 2020
That should fix it. I was under the impression that the landmark areas file would cover the whole globe and therefor yield an applicable ID for each point.
karussell commentedon Apr 27, 2020
Ok, thanks for confirmation. Yes, we could provide one globally, but should still prepare for the general (user provided) case and approach this more defensive.
otbutz commentedon Apr 28, 2020
Would it be worth to take a look at the current area definitions in order to improve landmark based routing?
karussell commentedon Apr 28, 2020
What do you mean? The area splitting makes it impossible to route between the defined areas but improves speed within the areas significantly, so further reducing the area might not be of much use.
Update ios_compatibility branch to graphhopper 1.0 release state. (#2383