| 608 | } |
| 609 | |
| 610 | FileData ImportKml(std::string const & str) |
| 611 | { |
| 612 | kml::FileData data; |
| 613 | try |
| 614 | { |
| 615 | kml::DeserializerKml des(data); |
| 616 | MemReader reader(str.data(), str.size()); |
| 617 | des.Deserialize(reader); |
| 618 | } |
| 619 | catch (kml::DeserializerKml::DeserializeException const & exc) |
| 620 | { |
| 621 | throw std::runtime_error(std::string("Import error: ") + exc.what()); |
| 622 | } |
| 623 | return data; |
| 624 | } |
| 625 | |
| 626 | void LoadClassificatorTypes(std::string const & classificatorFileStr, std::string const & typesFileStr) |
| 627 | { |
nothing calls this directly
no test coverage detected