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

Method AddNode

generator/generator_tests/road_access_test.cpp:245–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 void AddNode(OsmElement node, size_t idx = 0)
246 {
247 // Assign unique coordinates as id.
248 node.m_lat = node.m_lon = node.m_id;
249
250 feature::FeatureBuilder builder;
251 ftype::GetNameAndType(&node, builder.GetParams());
252 builder.SetCenter(mercator::FromLatLon(node.m_lat, node.m_lon));
253
254 m_collectors[idx]->CollectFeature(builder, node);
255 }
256
257 void Finish()
258 {

Callers

nothing calls this directly

Calls 5

GetNameAndTypeFunction · 0.85
GetParamsMethod · 0.80
FromLatLonFunction · 0.50
SetCenterMethod · 0.45
CollectFeatureMethod · 0.45

Tested by

no test coverage detected