- Timestamp:
- 2015-01-07T01:01:35+01:00 (10 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/combinations.mapcss
r7929 r7932 156 156 } 157 157 158 node[amenity =~ /^(restaurant|cafe|fast_food)$/][!name] { 158 node[amenity =~ /^(restaurant|cafe|fast_food)$/][!name][noname!=yes] { 159 159 throwOther: tr("restaurant without name"); 160 160 assertMatch: "node amenity=restaurant"; 161 assertNoMatch: "node amenity=restaurant noname=yes"; 161 162 assertNoMatch: "node amenity=restaurant name=Foobar"; 162 163 } -
trunk/data/validator/highway.mapcss
r7926 r7932 44 44 } 45 45 46 way[highway=unclassified][!name] { 46 way[highway=unclassified][!name][noname!=yes] { 47 47 throwOther: tr("Unnamed unclassified highway"); 48 48 assertMatch: "way highway=unclassified"; 49 assertNoMatch: "way highway=unclassified noname=yes"; 49 50 assertNoMatch: "way highway=unclassified name=Foo"; 50 51 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java
r7509 r7932 79 79 if (!tags.isEmpty()) { 80 80 String highway = tags.get("highway"); 81 if (highway != null && NAMED_WAYS.contains(highway) && !tags.containsKey("name") && !tags.containsKey("ref")) { 81 if (highway != null && NAMED_WAYS.contains(highway) && !tags.containsKey("name") && !tags.containsKey("ref") 82 && !"yes".equals(tags.get("noname"))) { 82 83 boolean isRoundabout = false; 83 84 boolean hasName = false;
Note:
See TracChangeset
for help on using the changeset viewer.