Changeset 6550 in josm for trunk/data/validator


Ignore:
Timestamp:
2013-12-27T21:41:52+01:00 (6 years ago)
Author:
simon04
Message:

see #9414 - MapCSS-based tagchecker: unify some checks

Location:
trunk/data/validator
Files:
1 added
2 edited

Legend:

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

    r6548 r6550  
    111111}
    112112
    113 /* {0} on a node */
    114 node[source:geometry],
    115 node[source:outline] {
    116   throwWarning: tr("{0} on a node", "{0.key}");
    117 }
    118 
    119113/* {0} on suspicious object */
    120114*[tunnel  ][!highway][!railway][!waterway][public_transport != platform][man_made != pipeline],
     
    133127}
    134128
     129way[highway][barrier],
    135130*[highway][waterway][waterway!=dam],
    136131*[highway][natural],
  • trunk/data/validator/highway.mapcss

    r6549 r6550  
    55  assertMatch: "way highway=unclassified name=\"Bou Blvd.\"";
    66  assertMatch: "way highway=unclassified name=\"Bou blvd.\"";
    7 }
    8 
    9 node[oneway] {
    10   throwWarning: tr("oneway tag on a node");
    11   assertMatch: "node oneway=-1";
    12   assertNoMatch: "way oneway=-1";
    13 }
    14 
    15 node[bridge?] {
    16   throwWarning: tr("bridge tag on a node");
    17   assertMatch: "node bridge=yes";
    18   assertNoMatch: "node bridge=13";
    197}
    208
     
    7260}
    7361
    74 way[highway=cycleway][bicycle?!] {
    75   throwWarning: tr("cycleway with tag bicycle");
     62way[highway=footway][maxspeed],
     63way[highway=steps][maxspeed],
     64way[highway=cycleway][bicycle?!],
     65way[highway=footway][foot?!],
     66way[highway=cycleway][cycleway=lane] {
     67  throwWarning: tr("{0} used with {1}", "{0.value}", "{1.tag}");
    7668  assertMatch: "way highway=cycleway bicycle=false";
    7769  assertMatch: "way highway=cycleway bicycle=0";
    7870  assertNoMatch: "way highway=cycleway bicycle=yes";
    7971  assertNoMatch: "way highway=cycleway";
    80 }
    81 
    82 way[highway=footway][foot?!] {
    83   throwWarning: tr("footway with tag foot");
    8472  assertMatch: "way highway=footway foot=false";
    8573  assertMatch: "way highway=footway foot=0";
    8674  assertNoMatch: "way highway=footway foot=yes";
    8775  assertNoMatch: "way highway=footway";
    88 }
    89 
    90 way[highway=cycleway][cycleway=lane] {
    91   throwWarning: tr("separate cycleway as lane on a cycleway");
    9276  assertMatch: "way highway=cycleway cycleway=lane";
    9377  assertNoMatch: "way highway=cycleway";
    9478  assertNoMatch: "way highway=residential cycleway=lane";
    95 }
    96 
    97 way[highway][barrier] {
    98   throwWarning: tr("barrier used on a way");
    99   assertMatch: "way highway=residential barrier=hedge";
    100   assertNoMatch: "way highway=residential";
    101   assertNoMatch: "way barrier=hedge";
    102 }
    103 
    104 way[highway=footway][maxspeed], way[highway=steps][maxspeed] {
    105   throwWarning: tr("maxspeed used for footway");
    10679  assertMatch: "way highway=footway maxspeed=20";
    10780  assertNoMatch: "way highway=residential maxspeed=20";
Note: See TracChangeset for help on using the changeset viewer.