| 487 | } |
| 488 | |
| 489 | std::vector<std::string> GetFilePathsToLoadFromKmb(std::string const & filePath) |
| 490 | { // Convert input file and save to temp KML with unique name. |
| 491 | auto kmlData = LoadKmlFile(filePath, KmlFileType::Binary); |
| 492 | if (kmlData == nullptr) |
| 493 | return {}; |
| 494 | |
| 495 | auto fileSavePath = GenerateValidAndUniqueFilePathForKML(base::FileNameFromFullPath(filePath)); |
| 496 | if (!SaveKmlFileByExt(*kmlData, fileSavePath)) |
| 497 | return {}; |
| 498 | return {std::move(fileSavePath)}; |
| 499 | } |
| 500 | |
| 501 | std::vector<std::string> GetFilePathsToLoadFromGpx(std::string const & filePath) |
| 502 | { // Copy input file to temp GPX with unique name. |
no test coverage detected