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

Method ParseAndAddPoints

libs/kml/serdes.cpp:707–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void KmlParser::ParseAndAddPoints(MultiGeometry::LineT & line, std::string_view s, char const * blockSeparator,
708 char const * coordSeparator)
709{
710 strings::Tokenize(s, blockSeparator, [&](std::string_view v)
711 {
712 geometry::PointWithAltitude point;
713 if (ParsePointWithAltitude(v, coordSeparator, point))
714 line.emplace_back(point);
715 else
716 LOG(LWARNING, ("Can not parse KML coordinates from", v));
717 });
718}
719
720void KmlParser::ParseLineString(std::string const & s)
721{

Callers

nothing calls this directly

Calls 3

ParsePointWithAltitudeFunction · 0.85
TokenizeFunction · 0.50
emplace_backMethod · 0.45

Tested by

no test coverage detected