| 92 | /// with it's own data and lat, lon. Here we store only cooridanes in mercator. |
| 93 | template <typename Iterator> |
| 94 | void SetGeometry(Iterator begin, Iterator end) |
| 95 | { |
| 96 | ASSERT_NOT_EQUAL(GetType(), Type::Unknown, ()); |
| 97 | ASSERT_NOT_EQUAL(GetType(), Type::Node, ()); |
| 98 | |
| 99 | for (; begin != end; ++begin) |
| 100 | { |
| 101 | auto nd = GetRootNode().append_child("nd"); |
| 102 | nd.append_attribute("x") = strings::to_string_dac(begin->x, kLatLonTolerance).data(); |
| 103 | nd.append_attribute("y") = strings::to_string_dac(begin->y, kLatLonTolerance).data(); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | template <typename Collection> |
| 108 | void SetGeometry(Collection const & geometry) |