| 37 | } |
| 38 | |
| 39 | void ParseWaysFeatureIdToOsmIdMapping(std::string const & osmIdsToFeatureIdPath, FeatureIdToOsmId & featureIdToOsmId) |
| 40 | { |
| 41 | featureIdToOsmId.clear(); |
| 42 | |
| 43 | ForEachWayFromFile(osmIdsToFeatureIdPath, [&](uint32_t featureId, base::GeoObjectId const & osmId) |
| 44 | { |
| 45 | auto const emplaced = featureIdToOsmId.emplace(featureId, osmId); |
| 46 | CHECK(emplaced.second, ("Feature id", featureId, "is included in two osm ids:", emplaced.first->second, osmId)); |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | class OsmWay2FeaturePointImpl : public OsmWay2FeaturePoint |
| 51 | { |