MCPcopy Create free account
hub / github.com/comaps/comaps / ParseFeatureIdToOsmIdMapping

Function ParseFeatureIdToOsmIdMapping

generator/utils.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool ParseFeatureIdToOsmIdMapping(std::string const & path,
102 ankerl::unordered_dense::map<uint32_t, base::GeoObjectId> & mapping)
103{
104 return ForEachOsmId2FeatureId(path, [&](auto const & compositeId, auto featureId)
105 {
106 CHECK(mapping.emplace(featureId, compositeId.m_mainId).second,
107 ("Several osm ids for feature", featureId, "in file", path));
108 });
109}
110
111bool ParseFeatureIdToTestIdMapping(std::string const & path, ankerl::unordered_dense::map<uint32_t, uint64_t> & mapping)
112{

Callers 3

BuildCitiesBoundariesFunction · 0.70
BuildCitiesIdsFunction · 0.70
WikidataHelperMethod · 0.70

Calls 2

ForEachOsmId2FeatureIdFunction · 0.85
emplaceMethod · 0.45

Tested by

no test coverage detected