| 103 | } |
| 104 | |
| 105 | XMLFeature GetMatchingFeatureFromOSM(osm::ChangesetWrapper & cw, osm::EditableMapObject const & o) |
| 106 | { |
| 107 | ASSERT_NOT_EQUAL(o.GetGeomType(), feature::GeomType::Line, ("Line features are not supported yet.")); |
| 108 | if (o.GetGeomType() == feature::GeomType::Point) |
| 109 | return cw.GetMatchingNodeFeatureFromOSM(o.GetMercator()); |
| 110 | |
| 111 | auto const & geometry = o.GetTriangesAsPoints(); |
| 112 | |
| 113 | ASSERT_GREATER_OR_EQUAL(geometry.size(), 3, ("Is it an area feature?")); |
| 114 | |
| 115 | return cw.GetMatchingAreaFeatureFromOSM(geometry); |
| 116 | } |
| 117 | |
| 118 | uint64_t GetMwmCreationTimeByMwmId(MwmSet::MwmId const & mwmId) |
| 119 | { |
no test coverage detected