mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[traffxml] Set FRC on all OpenLR location reference points
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -104,11 +104,11 @@ openlr::LinearLocationReference TraffLocation::ToLinearLocationReference(bool ba
|
|||||||
for (auto point : points)
|
for (auto point : points)
|
||||||
{
|
{
|
||||||
openlr::LocationReferencePoint lrp = point.ToLrp();
|
openlr::LocationReferencePoint lrp = point.ToLrp();
|
||||||
|
lrp.m_functionalRoadClass = GetFrc();
|
||||||
if (!locationReference.m_points.empty())
|
if (!locationReference.m_points.empty())
|
||||||
{
|
{
|
||||||
locationReference.m_points.back().m_distanceToNextPoint
|
locationReference.m_points.back().m_distanceToNextPoint
|
||||||
= GuessDnp(locationReference.m_points.back(), lrp);
|
= GuessDnp(locationReference.m_points.back(), lrp);
|
||||||
locationReference.m_points.back().m_functionalRoadClass = GetFrc();
|
|
||||||
}
|
}
|
||||||
locationReference.m_points.push_back(lrp);
|
locationReference.m_points.push_back(lrp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user