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

Function ExportKml

libs/kml/pykmlib/bindings.cpp:594–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594std::string ExportKml(FileData const & fileData)
595{
596 std::string resultBuffer;
597 try
598 {
599 MemWriter<decltype(resultBuffer)> sink(resultBuffer);
600 kml::SerializerKml ser(fileData);
601 ser.Serialize(sink);
602 }
603 catch (kml::SerializerKml::SerializeException const & exc)
604 {
605 throw std::runtime_error(std::string("Export error: ") + exc.what());
606 }
607 return resultBuffer;
608}
609
610FileData ImportKml(std::string const & str)
611{

Callers

nothing calls this directly

Calls 2

SerializeMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected