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

Method GetPoint

generator/intermediate_data.cpp:249–258  ·  view source on GitHub ↗

PointStorageReaderInterface overrides:

Source from the content-addressed store, hash-verified

247
248 // PointStorageReaderInterface overrides:
249 bool GetPoint(uint64_t id, double & lat, double & lon) const override
250 {
251 auto const i = m_map.find(id);
252 if (i == m_map.cend())
253 return false;
254 bool ret = FromLatLon(i->second, lat, lon);
255 if (!ret)
256 LOG(LERROR, ("Inconsistent MapFilePointStorageReader. Node with id =", id, "must exist but was not found"));
257 return ret;
258 }
259
260private:
261 FileReader m_fileReader;

Callers

nothing calls this directly

Calls 3

FromLatLonFunction · 0.70
findMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected