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

Function ParsePointWithAltitude

libs/kml/serdes.cpp:626–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626bool ParsePointWithAltitude(std::string_view s, char const * delim, geometry::PointWithAltitude & point)
627{
628 geometry::Altitude altitude = geometry::kInvalidAltitude;
629 m2::PointD pt;
630 if (ParsePoint(s, delim, pt, altitude))
631 {
632 point.SetPoint(pt);
633 point.SetAltitude(altitude);
634 return true;
635 }
636 return false;
637}
638} // namespace
639
640void KmlWriter::Write(FileData const & fileData)

Callers 1

ParseAndAddPointsMethod · 0.85

Calls 3

ParsePointFunction · 0.70
SetPointMethod · 0.45
SetAltitudeMethod · 0.45

Tested by

no test coverage detected