Changeset 8540 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
- Timestamp:
- 2015-06-27T21:43:35+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Highways.java
r8509 r8540 93 93 } 94 94 if (n.hasKey("source:maxspeed")) { 95 // Check maxspeed but not context against highway for nodes as maxspeed is not set on highways here but on signs, speed cameras, etc. 95 // Check maxspeed but not context against highway for nodes 96 // as maxspeed is not set on highways here but on signs, speed cameras, etc. 96 97 testSourceMaxspeed(n, false); 97 98 } … … 209 210 } 210 211 if ((leftByPedestrians || leftByCyclists) && leftByCars) { 211 errors.add(new TestError(this, Severity.OTHER, tr("Missing pedestrian crossing information"), MISSING_PEDESTRIAN_CROSSING, n)); 212 errors.add(new TestError(this, Severity.OTHER, tr("Missing pedestrian crossing information"), 213 MISSING_PEDESTRIAN_CROSSING, n)); 212 214 return; 213 215 } … … 244 246 String country = value.substring(0, index); 245 247 if (!ISO_COUNTRIES.contains(country)) { 246 errors.add(new TestError(this, Severity.WARNING, tr("Unknown country code: {0}", country), SOURCE_MAXSPEED_UNKNOWN_COUNTRY_CODE, p)); 248 errors.add(new TestError(this, Severity.WARNING, 249 tr("Unknown country code: {0}", country), SOURCE_MAXSPEED_UNKNOWN_COUNTRY_CODE, p)); 247 250 } 248 251 // Check context
Note:
See TracChangeset
for help on using the changeset viewer.