Skip to content

Commit

Permalink
Merge pull request #42 from movsim/vasa
Browse files Browse the repository at this point in the history
Fixes parsing of vasaloppet.xodr. Adapts geometrie of vasa to new y a…
  • Loading branch information
akegermany committed Aug 27, 2018
2 parents 4eb72a0 + 5498fca commit 37d8767
Show file tree
Hide file tree
Showing 5 changed files with 2,723 additions and 1,937 deletions.
Expand Up @@ -483,11 +483,12 @@ private static void joinByLanes(RoadNetwork roadNetwork, Road road, List<Lane> l
roadSegment);
}
}
if (lane.getLink().isSetSuccessor()) {
if (!hasRoadSuccessor(road)) {
throw new IllegalArgumentException(
"successor lane link but no road link defined for road=" + road.getId());
}
if (lane.getLink().isSetSuccessor() && !road.isSetJunction()) {
if (!hasRoadSuccessor(road)) {
throw new IllegalArgumentException(
"successor lane link but no road link defined for road=" + road.getId() + " name="
+ road.getName() + " junction=" + road.getJunction() + " lane=" + lane.getId());
}
int fromLane = lane.getId();
RoadSegment roadSegment = getRoadSegment(roadNetwork, road.getId(), fromLane);
int toLane = lane.getLink().getSuccessor().getId();
Expand Down

0 comments on commit 37d8767

Please sign in to comment.