- Timestamp:
- 2019-07-12T20:03:56+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r15183 r15244 4 4 import static org.openstreetmap.josm.tools.I18n.marktr; 5 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 import static org.openstreetmap.josm.tools.I18n.trn;7 6 8 7 import java.awt.geom.Area; … … 63 62 /** No area style for multipolygon */ 64 63 public static final int NO_STYLE = 1610; 65 /** Multipolygon relation should be tagged with area tags and not the outer way(s) */ 66 public static final int NO_STYLE_POLYGON = 1611; 64 // no longer used: Multipolygon relation should be tagged with area tags and not the outer way(s) NO_STYLE_POLYGON = 1611; 67 65 /** Area style on outer way */ 68 66 public static final int OUTER_STYLE = 1613; … … 112 110 /** 113 111 * Various style-related checks:<ul> 114 * <li>{@link #NO_STYLE_POLYGON}: Multipolygon relation should be tagged with area tags and not the outer way</li>115 112 * <li>{@link #INNER_STYLE_MISMATCH}: With the currently used mappaint style the style for inner way equals the multipolygon style</li> 116 113 * <li>{@link #OUTER_STYLE_MISMATCH}: Style for outer way mismatches</li> … … 136 133 errors.add(TestError.builder(this, Severity.OTHER, NO_STYLE) 137 134 .message(tr("No area style for multipolygon")) 138 .primitives(r)139 .build());140 } else {141 /* old style multipolygon - solve: copy tags from outer way to multipolygon */142 errors.add(TestError.builder(this, Severity.ERROR, NO_STYLE_POLYGON)143 .message(trn("Multipolygon relation should be tagged with area tags and not the outer way",144 "Multipolygon relation should be tagged with area tags and not the outer ways",145 polygon.getOuterWays().size()))146 135 .primitives(r) 147 136 .build());
Note:
See TracChangeset
for help on using the changeset viewer.