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

Function ValidateKmlData

libs/map/bookmark_helpers.cpp:220–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 {"shop-funeral_directors", {kml::BookmarkIcon::None, BookmarkBaseType::None}}};
219
220void ValidateKmlData(std::unique_ptr<kml::FileData> & data)
221{
222 if (!data)
223 return;
224
225 for (auto & t : data->m_tracksData)
226 if (t.m_layers.empty())
227 t.m_layers.emplace_back(kml::KmlParser::GetDefaultTrackLayer());
228}
229
230/// @todo(KK): This code is a temporary solution for the filtering the duplicated points in KMLs.
231/// When the deserealizer reads the data from the KML that uses <gx:Track>

Callers 1

LoadKmlDataFunction · 0.85

Calls 2

emptyMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected