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

Method CollectFeature

generator/road_access_generator.cpp:399–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void RoadAccessCollector::CollectFeature(feature::FeatureBuilder const & fb, OsmElement const & elem)
400{
401 /// @todo Note that here we take into account only classifier recognized barriers (valid FeatureBuilder).
402 /// Can't say for sure is it good or not, but as it is.
403
404 for (auto const & tag : elem.m_tags)
405 if (kIgnoreAccess.count(tag))
406 return;
407
408 for (auto & p : m_tagProcessors)
409 {
410 p.Process(elem);
411 p.ProcessConditional(elem);
412 }
413
414 if (routing::IsRoadWay(fb))
415 {
416 m_roads.AddWay(elem);
417
418 for (auto & p : m_tagProcessors)
419 p.SetIgnoreBarriers(elem);
420 }
421}
422
423/// @see correspondent ReadRoadAccess.
424void RoadAccessCollector::Save()

Callers

nothing calls this directly

Calls 6

IsRoadWayFunction · 0.85
ProcessConditionalMethod · 0.80
SetIgnoreBarriersMethod · 0.80
countMethod · 0.45
ProcessMethod · 0.45
AddWayMethod · 0.45

Tested by

no test coverage detected