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

Method AddPoint

generator/intermediate_data.cpp:143–153  ·  view source on GitHub ↗

PointStorageWriterInterface overrides:

Source from the content-addressed store, hash-verified

141
142 // PointStorageWriterInterface overrides:
143 void AddPoint(uint64_t id, double lat, double lon) override
144 {
145 if (m_buffer.size() >= kBufferSize)
146 FlushAsync();
147
148 LatLon ll;
149 ToLatLon(lat, lon, ll);
150 m_buffer.push_back({id, ll});
151
152 ++m_numProcessedPoints;
153 }
154
155private:
156 using BufferT = std::vector<LatLonPos>;

Callers 5

ProcessFeatureMethod · 0.45
CreateRegionIFunction · 0.45
ReadPolygonFunction · 0.45
AddNodeMethod · 0.45
MakeJointFunction · 0.45

Calls 3

ToLatLonFunction · 0.70
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected