mapping.intersection.intersection_area_dangling_reference
This validator checks whether each intersection lanelet(namely the lanelet with turn_direction
property) has reference to existing intersection_area
polygon. Such invalid case occurs when an intersection_area is deleted but its referrers are not updated.
This is achieved by the following procedure.
- Obtain the set of
intersection_area
polygon IDs - Check if intersection lanelet has "intersection_area" key and its value is contained in the above IDs
The validator outputs the following issue with the corresponding ID of the primitive.
Issue Code | Message | Severity | Primitive | Description | Approach |
---|---|---|---|---|---|
Intersection.IntersectionAreaDanglingReference-001 | "Dangling reference to non-existing intersection area of ID <LANELET ID> is detected" | Error | Lanelet | The reported lanelet will cause a runtime error when attempting to look up the non-existent intersection_area. | Go to the reported lanelet and delete "intersection_area" key entry. |
- intersection_area_dangling_reference.hpp
- intersection_area_dangling_reference.cpp