| 705 | } |
| 706 | |
| 707 | void 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 | |
| 720 | void KmlParser::ParseLineString(std::string const & s) |
| 721 | { |
nothing calls this directly
no test coverage detected