| 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 |
nothing calls this directly
no test coverage detected