MCPcopy Create free account
hub / github.com/comaps/comaps / LocationReferencePointFromXML

Function LocationReferencePointFromXML

tools/openlr/openlr_model_xml.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool LocationReferencePointFromXML(pugi::xml_node const & locPointNode, openlr::LocationReferencePoint & locPoint)
197{
198 if (!FirstCoordinateFromXML(locPointNode, locPoint.m_latLon))
199 {
200 LOG(LERROR, ("Can't get first coordinate"));
201 return false;
202 }
203
204 return LinePropertiesFromXML(locPointNode.child("olr:lineProperties"), locPoint) &&
205 PathPropertiesFromXML(locPointNode, locPoint);
206}
207
208bool LocationReferencePointFromXML(pugi::xml_node const & locPointNode, ms::LatLon const & firstPoint,
209 openlr::LocationReferencePoint & locPoint)

Callers 1

Calls 4

FirstCoordinateFromXMLFunction · 0.85
LinePropertiesFromXMLFunction · 0.85
PathPropertiesFromXMLFunction · 0.85
CoordinateFromXMLFunction · 0.85

Tested by

no test coverage detected