| 134 | CoastlineFeaturesGenerator::CoastlineFeaturesGenerator() : m_merger(kPointCoordBits) {} |
| 135 | |
| 136 | void CoastlineFeaturesGenerator::AddRegionToTree(feature::FeatureBuilder const & fb) |
| 137 | { |
| 138 | ASSERT(fb.IsGeometryClosed(), ()); |
| 139 | |
| 140 | fb.ForEachPolygon([&](auto const & polygon) |
| 141 | { |
| 142 | if (polygon.empty()) |
| 143 | return; |
| 144 | |
| 145 | using namespace coastlines_generator; |
| 146 | RegionT rgn = CreateRegionI(polygon); |
| 147 | auto const limitRect = GetLimitRect(rgn); |
| 148 | |
| 149 | m_tree.Add(std::move(rgn), limitRect); |
| 150 | }); |
| 151 | } |
| 152 | |
| 153 | void CoastlineFeaturesGenerator::Process(feature::FeatureBuilder const & fb) |
| 154 | { |
no test coverage detected