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

Function AppendWay

libs/editor/feature_matcher.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120template <typename Geometry>
121void AppendWay(pugi::xml_document const & osmResponse, pugi::xml_node const & way, Geometry & dest)
122{
123 ForEachRefInWay(osmResponse, way, [&dest](XMLFeature const & xmlFt)
124 {
125 auto const & p = xmlFt.GetMercatorCenter();
126 bg::append(dest, boost::make_tuple(p.x, p.y));
127 });
128}
129
130Polygon GetWaysGeometry(pugi::xml_document const & osmResponse, pugi::xml_node const & way)
131{

Callers 2

GetWaysGeometryFunction · 0.85
GetRelationsGeometryFunction · 0.85

Calls 2

ForEachRefInWayFunction · 0.85
GetMercatorCenterMethod · 0.80

Tested by

no test coverage detected