| 61 | } |
| 62 | |
| 63 | ms::LatLon GetLatLonFromNode(pugi::xml_node const & node) |
| 64 | { |
| 65 | ms::LatLon ll; |
| 66 | if (!strings::to_double(node.attribute("lat").value(), ll.m_lat)) |
| 67 | MYTHROW(editor::NoLatLon, ("Can't parse lat attribute:", string(node.attribute("lat").value()))); |
| 68 | if (!strings::to_double(node.attribute("lon").value(), ll.m_lon)) |
| 69 | MYTHROW(editor::NoLatLon, ("Can't parse lon attribute:", string(node.attribute("lon").value()))); |
| 70 | return ll; |
| 71 | } |
| 72 | |
| 73 | m2::PointD GetMercatorPointFromNode(pugi::xml_node const & node) |
| 74 | { |
no test coverage detected