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

Method AddWay

generator/generator_tests/road_access_test.cpp:234–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 }
233
234 void AddWay(OsmElement way, size_t idx = 0)
235 {
236 feature::FeatureBuilder builder;
237 ftype::GetNameAndType(&way, builder.GetParams());
238 builder.SetLinear();
239
240 m_cache->Add(way);
241
242 m_collectors[idx]->CollectFeature(builder, way);
243 }
244
245 void AddNode(OsmElement node, size_t idx = 0)
246 {

Callers

nothing calls this directly

Calls 5

GetNameAndTypeFunction · 0.85
GetParamsMethod · 0.80
SetLinearMethod · 0.80
AddMethod · 0.45
CollectFeatureMethod · 0.45

Tested by

no test coverage detected