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

Method BuildFromNode

generator/feature_maker.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool FeatureMakerSimple::BuildFromNode(OsmElement & p, FeatureBuilderParams const & params)
82{
83 FeatureBuilder fb;
84 fb.SetCenter(mercator::FromLatLon(p.m_lat, p.m_lon));
85
86 fb.SetOsmId(base::MakeOsmNode(p.m_id));
87 fb.SetParams(params);
88
89 m_queue.push(std::move(fb));
90 return true;
91}
92
93bool FeatureMakerSimple::BuildFromWay(OsmElement & p, FeatureBuilderParams const & params)
94{

Callers

nothing calls this directly

Calls 6

MakeOsmNodeFunction · 0.85
pushMethod · 0.80
FromLatLonFunction · 0.70
SetCenterMethod · 0.45
SetOsmIdMethod · 0.45
SetParamsMethod · 0.45

Tested by

no test coverage detected