示例#1
0
 void linestring_add_location(const osmium::geom::Coordinates& xy) {
     xy.append_to_string(m_str, '[', ',', ']', m_precision);
     m_str += ',';
 }
示例#2
0
 // { "type": "Point", "coordinates": [100.0, 0.0] }
 point_type make_point(const osmium::geom::Coordinates& xy) const {
     std::string str {"{\"type\":\"Point\",\"coordinates\":"};
     xy.append_to_string(str, '[', ',', ']', m_precision);
     str += "}";
     return str;
 }
示例#3
0
 void multipolygon_add_location(const osmium::geom::Coordinates& xy) {
     xy.append_to_string(m_str, ' ', m_precision);
     m_str += ',';
 }
示例#4
0
 point_type make_point(const osmium::geom::Coordinates& xy) const {
     std::string str {m_srid_prefix};
     str += "POINT";
     xy.append_to_string(str, '(', ' ', ')', m_precision);
     return str;
 }
示例#5
0
 point_type make_point(const osmium::geom::Coordinates& xy) const {
     std::string str {"POINT"};
     xy.append_to_string(str, '(', ' ', ')');
     return str;
 }