| 71 | } |
| 72 | |
| 73 | m2::PointD GetMercatorPointFromNode(pugi::xml_node const & node) |
| 74 | { |
| 75 | m2::PointD p; |
| 76 | if (!strings::to_double(node.attribute("x").value(), p.x)) |
| 77 | MYTHROW(editor::NoXY, ("Can't parse x attribute: " + string(node.attribute("x").value()))); |
| 78 | if (!strings::to_double(node.attribute("y").value(), p.y)) |
| 79 | MYTHROW(editor::NoXY, ("Can't parse y attribute: " + string(node.attribute("y").value()))); |
| 80 | return p; |
| 81 | } |
| 82 | |
| 83 | void ValidateElement(pugi::xml_node const & nodeOrWay) |
| 84 | { |
no test coverage detected