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

Function SaveKmlFile

libs/map/bookmark_helpers.cpp:587–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587bool SaveKmlFile(kml::FileData & kmlData, std::string const & file, KmlFileType fileType)
588{
589 FileWriter writer(file);
590 switch (fileType)
591 {
592 case KmlFileType::Text: // fallthrough
593 case KmlFileType::Binary: return SaveKmlData(kmlData, writer, fileType);
594 case KmlFileType::Gpx: return SaveGpxData(kmlData, writer);
595 default:
596 {
597 LOG(LWARNING, ("Unexpected KmlFileType", fileType));
598 return false;
599 }
600 }
601}
602
603bool SaveKmlFileSafe(kml::FileData & kmlData, std::string const & file, KmlFileType fileType)
604{

Callers 1

SaveKmlFileSafeFunction · 0.85

Calls 2

SaveKmlDataFunction · 0.85
SaveGpxDataFunction · 0.85

Tested by

no test coverage detected