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

Method AddPoint

generator/intermediate_data.cpp:88–97  ·  view source on GitHub ↗

PointStorageWriterInterface overrides:

Source from the content-addressed store, hash-verified

86
87 // PointStorageWriterInterface overrides:
88 void AddPoint(uint64_t id, double lat, double lon) override
89 {
90 LatLon ll;
91 ToLatLon(lat, lon, ll);
92
93 m_fileWriter.Seek(id * sizeof(ll));
94 m_fileWriter.Write(&ll, sizeof(ll));
95
96 ++m_numProcessedPoints;
97 }
98
99private:
100 FileWriter m_fileWriter;

Callers

nothing calls this directly

Calls 3

ToLatLonFunction · 0.70
SeekMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected