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

Function GetWaysOrRelationsGeometry

libs/editor/feature_matcher.cpp:171–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171Polygon GetWaysOrRelationsGeometry(pugi::xml_document const & osmResponse, pugi::xml_node const & wayOrRelation)
172{
173 if (strcmp(wayOrRelation.name(), "way") == 0)
174 return GetWaysGeometry(osmResponse, wayOrRelation);
175 return GetRelationsGeometry(osmResponse, wayOrRelation);
176}
177
178/// Returns value form [-1, 1]. Negative values are used as penalty, positive as score.
179/// |osmResponse| - nodes, ways and relations from osm;

Callers 1

ScoreGeometryFunction · 0.85

Calls 3

GetWaysGeometryFunction · 0.85
GetRelationsGeometryFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected