Changeset 10350 in josm for trunk/data/validator


Ignore:
Timestamp:
2016-06-11T17:11:11+02:00 (8 years ago)
Author:
Klumbumbus
Message:

fix #12942 - improve oneway warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/combinations.mapcss

    r10320 r10350  
    156156
    157157/* {0.key} without {1.key} or {2.key} */
    158 *[oneway                       ][!highway][!railway] {
     158way[oneway][!highway][!railway] {
    159159  throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
    160160}
     
    217217}
    218218
    219 /*see #11127*/
     219/* #11127 */
    220220way[waterway][bridge=yes] {
    221221  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.tag}");
     
    237237}
    238238
    239 /* see #9811, #11491, #12865 */
     239/* #9811, #11491, #12865 */
    240240*[place][place!=farm][/^addr:/],
    241241*[boundary][/^addr:/],
     
    262262}
    263263
    264 /* see #9195 */
     264/* #9195 */
    265265*[highway=footway][cycleway=lane] {
    266266  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     
    292292}
    293293
     294/* #6932 */
    294295*[natural=water][leisure=swimming_pool],
    295296*[natural=water][amenity=swimming_pool] {
    296   /* see #6932 */
    297297  throwWarning: tr("natural water used for swimming pool");
    298298  fixRemove: "natural";
    299299}
    300300
    301 /* see #9593, #11183, #12418, #12761 */
     301/* #9593, #11183, #12418, #12761 */
    302302*[sport][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink)$/][natural !~ /^(beach|bare_rock|cliff|peak|water)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/][barrier !~ /^(wall|retaining_wall)$/][!"piste:type"][shop!=sports] {
    303303    throwWarning: tr("sport without physical feature");
     
    310310}
    311311
    312 /* see #10140 */
     312/* #10140 */
    313313*[building:levels][!building][!building:part] {
    314314  throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
    315315}
    316316
    317 /* see #10471 */
     317/* #10471 */
    318318way[waterway] > node[ford?] { set ford_on_waterway; }
    319319way[highway] > node[ford?] { set ford_on_highway; }
     
    327327}
    328328
    329 /* see #10837 */
     329/* #10837 */
    330330way[destination][!oneway?][junction!=roundabout][highway] {
    331331  throwWarning: tr("incomplete usage of {0} on a way without {1}", "{0.key}", "{1.key}");
     
    334334}
    335335
    336 /* see #11389 */
     336/* #11389 */
    337337way["maxspeed:forward"=*"maxspeed:backward"][!maxspeed] {
    338338  throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
     
    356356}
    357357
    358 /* see #11837 */
     358/* #11837 */
    359359way[layer][layer<0][bridge][bridge!=no][location!=underground][indoor!=yes][!tunnel],
    360360way[layer][layer>0][tunnel][tunnel!=no][location!=overground][indoor!=yes][!bridge] {
    361361  throwWarning: tr("Suspicious tag combination: {0} and {1}", "{2.tag}", "{0.tag}");
    362362}
     363
     364/* #12942 */
     365relation[oneway][type!=route] {
     366  throwWarning: tr("{0} on a relation without {1}", "{0.key}", "{1.tag}");
     367}
Note: See TracChangeset for help on using the changeset viewer.