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

Function IsWorldMwm

generator/cities_ids_builder.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace
25{
26bool IsWorldMwm(std::string const & path)
27{
28 try
29 {
30 feature::DataHeader const header(path);
31 return header.GetType() == feature::DataHeader::MapType::World;
32 }
33 catch (Reader::OpenException const & e)
34 {
35 return false;
36 }
37}
38
39void WriteCitiesIdsSectionToFile(std::string const & dataPath,
40 ankerl::unordered_dense::map<uint32_t, base::GeoObjectId> const & mapping)

Callers 2

BuildCitiesIdsFunction · 0.85
BuildCitiesIdsForTestingFunction · 0.85

Calls 1

GetTypeMethod · 0.45

Tested by

no test coverage detected