| 29 | {} |
| 30 | |
| 31 | base::ControlFlow HolesProcessor::operator()(uint64_t /* id */, RelationElement const & e) |
| 32 | { |
| 33 | auto const type = e.GetType(); |
| 34 | if (!(type == "multipolygon" || type == "boundary")) |
| 35 | return base::ControlFlow::Continue; |
| 36 | |
| 37 | if (auto const role = e.GetWayRole(m_id); role == "outer") |
| 38 | { |
| 39 | e.ForEachWay(*this); |
| 40 | // Stop processing. Assume that "outer way" exists in one relation only. |
| 41 | return base::ControlFlow::Break; |
| 42 | } |
| 43 | return base::ControlFlow::Continue; |
| 44 | } |
| 45 | |
| 46 | void HolesProcessor::operator()(uint64_t id, std::string const & role) |
| 47 | { |
nothing calls this directly
no test coverage detected