Changeset 9021 in osm
- Timestamp:
- 2008-07-15T12:04:07+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/OverlappingWays.java
r8693 r9021 74 74 if (ar != null && ("true".equalsIgnoreCase(ar) || "yes".equalsIgnoreCase(ar) || "1".equals(ar))) 75 75 area++; 76 if (ws.way.get("landuse") != null) 76 if (ws.way.get("landuse") != null || ws.way.get("natural") != null 77 || ws.way.get("amenity") != null || ws.way.get("leisure") != null) 77 78 { 78 79 area++; ways--; … … 92 93 if(area > 0) 93 94 { 94 if (highway == ways) 95 if (ways == 0 || duplicated.size() == area) 96 errortype = tr("Overlapping areas"); 97 else if (highway == ways) 95 98 errortype = tr("Overlapping highways (with area)"); 96 99 else if (railway == ways) -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UnclosedWays.java
r8911 r9021 55 55 if(test != null) 56 56 { 57 if(!"coastline".equals(test)) 58 force = true; 57 59 type = tr("natural type {0}", tr(test)); 58 60 } … … 60 62 if(test != null) 61 63 { 64 force = true; 62 65 type = tr("landuse type {0}", tr(test)); 66 } 67 test = w.get("amenities"); 68 if(test != null) 69 { 70 force = true; 71 type = tr("amenities type {0}", tr(test)); 72 } 73 test = w.get("sport"); 74 if(test != null) 75 { 76 force = true; 77 type = tr("sport type {0}", tr(test)); 78 } 79 test = w.get("tourism"); 80 if(test != null) 81 { 82 force = true; 83 type = tr("tourism type {0}", tr(test)); 84 } 85 test = w.get("shop"); 86 if(test != null) 87 { 88 force = true; 89 type = tr("shop type {0}", tr(test)); 90 } 91 test = w.get("leisure"); 92 if(test != null) 93 { 94 force = true; 95 type = tr("leisure type {0}", tr(test)); 96 } 97 test = w.get("waterway"); 98 if(test != null && test.equals("riverbank")) 99 { 100 force = true; 101 type = tr("waterway type {0}", tr(test)); 63 102 } 64 103 test = w.get("junction");
Note:
See TracChangeset
for help on using the changeset viewer.