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

Method Build

generator/holes.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55{}
56
57void HolesRelation::Build(OsmElement const * p)
58{
59 // Iterate ways to get 'outer' and 'inner' geometries.
60 for (auto const & e : p->Members())
61 {
62 if (e.m_type != OsmElement::EntityType::Way)
63 continue;
64
65 if (e.m_role == "outer")
66 m_outer.AddWay(e.m_ref);
67 else if (e.m_role == "inner")
68 m_holes(e.m_ref);
69 }
70}
71} // namespace generator

Callers 3

RenderMethod · 0.45
UpdateMethod · 0.45
BuildFromRelationMethod · 0.45

Calls 2

MembersMethod · 0.80
AddWayMethod · 0.45

Tested by

no test coverage detected