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

Method ToOSMString

libs/editor/xml_feature.cpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175string XMLFeature::ToOSMString() const
176{
177 std::ostringstream ost;
178 // Ugly way to wrap into <osm>..</osm> tags.
179 // Unfortunately, pugi xml library doesn't allow to insert documents into other documents.
180 ost << "<?xml version=\"1.0\"?>\n";
181 ost << "<osm>\n";
182 m_document.save(ost, " ", pugi::format_no_declaration | pugi::format_indent);
183 ost << "</osm>\n";
184 return ost.str();
185}
186
187m2::PointD XMLFeature::GetMercatorCenter() const
188{

Callers 5

operator==Method · 0.80
CreateElementMethod · 0.80
ModifyElementMethod · 0.80
DeleteElementMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 1

saveMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64