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

Function MakeOuterRing

libs/editor/feature_matcher.cpp:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void MakeOuterRing(MultiLinestring & outerLines, Polygon & dest)
60{
61 bool const needReverse = outerLines.size() > 1 && bg::equals(outerLines[0].front(), outerLines[1].back());
62
63 for (size_t i = 0; i < outerLines.size(); ++i)
64 {
65 if (needReverse)
66 bg::reverse(outerLines[i]);
67
68 bg::append(dest.outer(), outerLines[i]);
69 }
70}
71
72/// Returns value form (-Inf, 1]. Negative values are used as penalty, positive as score.
73double ScoreLatLon(XMLFeature const & xmlFt, ms::LatLon const & latLon)

Callers 1

GetRelationsGeometryFunction · 0.85

Calls 3

frontMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected