Changeset 15244 in josm
- Timestamp:
- 2019-07-12T20:03:56+02:00 (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data_nodist/multipolygon.osm
r14437 r15244 3913 3913 <member type='way' ref='-41659' role='outer' /> 3914 3914 <member type='way' ref='-41651' role='outer' /> 3915 <tag k='josm_error_codes' v='1606,161 1,1617' />3915 <tag k='josm_error_codes' v='1606,1617' /> 3916 3916 <tag k='name' v='07/04 - Mixed Geometry' /> 3917 3917 <tag k='type' v='multipolygon' /> … … 4021 4021 <member type='way' ref='-41737' role='' /> 4022 4022 <member type='relation' ref='-42089' role='' /> 4023 <tag k='josm_error_codes' v='1601,1602 ,1611' />4023 <tag k='josm_error_codes' v='1601,1602' /> 4024 4024 <tag k='name' v='06/05 - wrong roles' /> 4025 4025 <tag k='type' v='multipolygon' /> … … 4143 4143 <member type='way' ref='-41777' role='outer' /> 4144 4144 <tag k='comment' v='For this test the display style depends on the order of ways and is unpredictable' /> 4145 <tag k='josm_error_codes' v='1607 ,1611' />4145 <tag k='josm_error_codes' v='1607' /> 4146 4146 <tag k='name' v='06/04 - Mismatching way styles' /> 4147 4147 <tag k='type' v='multipolygon' /> -
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.