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

Function ImportKml

libs/kml/pykmlib/bindings.cpp:610–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610FileData 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
626void LoadClassificatorTypes(std::string const & classificatorFileStr, std::string const & typesFileStr)
627{

Callers

nothing calls this directly

Calls 4

dataMethod · 0.45
sizeMethod · 0.45
DeserializeMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected