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

Function LatLonFormXML

tools/openlr/openlr_model_xml.cpp:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107std::optional<ms::LatLon> LatLonFormXML(pugi::xml_node const & node)
108{
109 auto const lat = DoubleFromXML(node.child("latitude"));
110 auto const lon = DoubleFromXML(node.child("longitude"));
111
112 return lat && lon ? ms::LatLon(*lat, *lon) : ms::LatLon::Zero();
113}
114
115bool CoordinateFromXML(pugi::xml_node const & node, ms::LatLon const & prevCoord, ms::LatLon & latLon)
116{

Callers 1

CoordinatesFromXMLFunction · 0.85

Calls 3

DoubleFromXMLFunction · 0.85
ZeroFunction · 0.85
LatLonClass · 0.50

Tested by

no test coverage detected