Changeset 7570 in josm
- Timestamp:
- 2014-09-20T21:19:54+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r7569 r7570 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 import static org.openstreetmap.josm.tools.I18n.trn; 5 6 6 7 import java.awt.geom.GeneralPath; … … 54 55 protected static final int NO_STYLE = 1610; 55 56 protected static final int NO_STYLE_POLYGON = 1611; 56 protected static final int STYLE_ON_WAY = 1612;57 57 protected static final int OUTER_STYLE = 1613; 58 58 … … 221 221 if (!"boundary".equals(r.get("type"))) { 222 222 if (area == null) { 223 addError(r, new TestError(this, Severity.OTHER, tr("No style for multipolygon"), NO_STYLE, r));223 addError(r, new TestError(this, Severity.OTHER, tr("No area style for multipolygon"), NO_STYLE, r)); 224 224 } else { 225 addError(r, new TestError(this, Severity.OTHER, tr("No style in multipolygon relation"), 225 /* old style multipolygon - solve: copy tags from outer way to multipolygon */ 226 addError(r, new TestError(this, Severity.OTHER, 227 trn("Multipolygon relation should be tagged with area tags and not the outer way", 228 "Multipolygon relation should be tagged with area tags and not the outer ways", polygon.getOuterWays().size()), 226 229 NO_STYLE_POLYGON, r)); 227 230 } … … 257 260 } 258 261 } 259 if(!areaStyle) { /* old style multipolygon - solve: copy tags from outer way to multipolygon */260 addError(r, new TestError(this, Severity.WARNING, tr("Style is on way and not on multipolygon"), STYLE_ON_WAY, r));261 }262 262 } 263 263 }
Note:
See TracChangeset
for help on using the changeset viewer.