MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

generator/coastlines_generator.cpp:60–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 {}
59
60 virtual void operator()(feature::FeatureBuilder const & fb)
61 {
62 if (fb.IsGeometryClosed())
63 m_rMain.AddRegionToTree(fb);
64 else
65 {
66 base::GeoObjectId const firstWay = fb.GetFirstOsmId();
67 base::GeoObjectId const lastWay = fb.GetLastOsmId();
68 if (firstWay == lastWay)
69 LOG(LINFO, ("Not merged coastline, way", firstWay.GetSerialId(), "(", fb.GetPointsCount(), "points)"));
70 else
71 LOG(LINFO, ("Not merged coastline, ways", firstWay.GetSerialId(), "to", lastWay.GetSerialId(), "(",
72 fb.GetPointsCount(), "points)"));
73 ++m_notMergedCoastsCount;
74 m_totalNotMergedCoastsPoints += fb.GetPointsCount();
75 }
76 }
77
78 bool HasNotMergedCoasts() const { return m_notMergedCoastsCount != 0; }
79

Callers

nothing calls this directly

Calls 6

IsGeometryClosedMethod · 0.80
AddRegionToTreeMethod · 0.80
GetFirstOsmIdMethod · 0.80
GetLastOsmIdMethod · 0.80
GetSerialIdMethod · 0.80
GetPointsCountMethod · 0.45

Tested by

no test coverage detected