| 135 | | // If area style was not found for relation then use style of ways |
| 136 | | if (area == null) { |
| 137 | | for (Way w : polygon.getOuterWays()) { |
| 138 | | area = ElemStyles.getAreaElemStyle(w, true); |
| 139 | | if (area != null) { |
| 140 | | break; |
| 141 | | } |
| 142 | | } |
| 143 | | if (area == null) { |
| 144 | | errors.add(TestError.builder(this, Severity.OTHER, NO_STYLE) |
| 145 | | .message(tr("No area style for multipolygon")) |
| 146 | | .primitives(r) |
| 147 | | .build()); |
| 148 | | } |
| | 137 | if (r.getInterestingTags().size() <= 1) { |
| | 138 | errors.add(TestError.builder(this, Severity.ERROR, NO_TAGS) |
| | 139 | .message(tr("No further tags for multipolygon")) |
| | 140 | .primitives(r) |
| | 141 | .build()); |
| | 142 | } else if (area == null && !r.concernsArea()) { |
| | 143 | errors.add(TestError.builder(this, Severity.WARNING, NO_STYLE) |
| | 144 | .message(tr("No area style for multipolygon")) |
| | 145 | .primitives(r) |
| | 146 | .build()); |