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

Method GetPoint

generator/intermediate_data.cpp:67–76  ·  view source on GitHub ↗

PointStorageReaderInterface overrides:

Source from the content-addressed store, hash-verified

65
66 // PointStorageReaderInterface overrides:
67 bool GetPoint(uint64_t id, double & lat, double & lon) const override
68 {
69 LatLon ll;
70 m_mmapReader.Read(id * sizeof(ll), &ll, sizeof(ll));
71
72 bool ret = FromLatLon(ll, lat, lon);
73 if (!ret)
74 LOG(LERROR, ("Node with id =", id, "not found!"));
75 return ret;
76 }
77
78private:
79 MmapReader m_mmapReader;

Callers

nothing calls this directly

Calls 2

FromLatLonFunction · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected