Changeset 7565 in josm
- Timestamp:
- 2014-09-20T14:24:31+02:00 (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data_nodist/multipolygon.osm
r7560 r7565 242 242 <node id='-237' action='modify' visible='true' lat='83.72291011287005' lon='-177.88230504962021'> 243 243 <tag k='place' v='city' /> 244 <tag k='name' v='02 : Basic test with tagged inner and outer ways and no area tagging inside relation (very old style )' />244 <tag k='name' v='02 : Basic test with tagged inner and outer ways and no area tagging inside relation (very old style - no longer supported)' /> 245 245 </node> 246 246 <node id='-238' action='modify' visible='true' lat='83.34037740211511' lon='-166.97194405693813' /> … … 3009 3009 <member type='way' ref='-951' role='inner' /> 3010 3010 <member type='way' ref='-966' role='outer' /> 3011 <tag k='name' v='Example 2 (0 2)' />3011 <tag k='name' v='Example 2 (04)' /> 3012 3012 <tag k='type' v='multipolygon' /> 3013 3013 </relation> -
trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java
r7486 r7565 239 239 } 240 240 } 241 if(!areaStyle) { 242 for (Way wOuter : polygon.getOuterWays()) { 243 AreaElemStyle areaOuter = ElemStyles.getAreaElemStyle(wOuter, false); 244 if (areaOuter != null && !area.equals(areaOuter)) { 245 List<OsmPrimitive> l = new ArrayList<>(); 246 l.add(r); 247 l.add(wOuter); 248 addError(r, new TestError(this, Severity.WARNING, tr("Style for outer way mismatches"), 249 OUTER_STYLE_MISMATCH, l, Collections.singletonList(wOuter))); 250 } 241 for (Way wOuter : polygon.getOuterWays()) { 242 AreaElemStyle areaOuter = ElemStyles.getAreaElemStyle(wOuter, false); 243 if (areaOuter != null && !area.equals(areaOuter)) { 244 List<OsmPrimitive> l = new ArrayList<>(); 245 l.add(r); 246 l.add(wOuter); 247 addError(r, new TestError(this, Severity.WARNING, !areaStyle ? tr("Style for outer way mismatches") 248 : tr("Style for outer way mismatches polygon"), 249 OUTER_STYLE_MISMATCH, l, Collections.singletonList(wOuter))); 251 250 } 252 251 }
Note:
See TracChangeset
for help on using the changeset viewer.