| 173 | } |
| 174 | |
| 175 | string 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 | |
| 187 | m2::PointD XMLFeature::GetMercatorCenter() const |
| 188 | { |