Changeset 6538 in josm for trunk/data/validator


Ignore:
Timestamp:
2013-12-26T15:19:31+01:00 (11 years ago)
Author:
simon04
Message:

see #9414 - MapCSS-based tagchecker: provide {i.key}, {i.value}, {i.tag} variables to messages/fixes which refer to the corresponding match condition

File:
1 edited

Legend:

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

    r6537 r6538  
    88
    99/* from http://wiki.openstreetmap.org/wiki/Types_of_relation */
    10 relation[type=route][!route] {
    11   throwWarning: tr("{0} relation without {0} tag", "route");
     10/* see also #9071 */
     11relation[type=route][!route],
     12relation[type=route_master][!route_master],
     13relation[type=restriction][!restriction],
     14relation[type=boundary][!boundary],
     15relation[type=site][!site],
     16relation[type=public_transport][!public_transport],
     17relation[type=waterway][!waterway],
     18relation[type=enforcement][!enforcement] {
     19  throwWarning: tr("{0} relation without {0} tag", "{1.key}");
    1220  assertMatch: "relation type=route";
    1321  assertNoMatch: "relation type=route route=train";
    14 }
    15 
    16 relation[type=route_master][!route_master] {
    17   /* see #9071 */
    18   throwWarning: tr("{0} relation without {0} tag", "route_master");
    1922  assertMatch: "relation type=route_master";
    2023  assertNoMatch: "relation type=route_master route_master=train";
    21 }
    22 
    23 relation[type=restriction][!restriction] {
    24   throwWarning: tr("{0} relation without {0} tag", "restriction");
    2524  assertMatch: "relation type=restriction";
    2625  assertNoMatch: "relation type=restriction restriction=no_left_turn";
    27 }
    28 
    29 relation[type=boundary][!boundary] {
    30   throwWarning: tr("{0} relation without {0} tag", "boundary");
    3126  assertMatch: "relation type=boundary";
    3227  assertNoMatch: "relation type=boundary boundary=administrative";
    33 }
    34 
    35 relation[type=site][!site] {
    36   throwWarning: tr("{0} relation without {0} tag", "site");
    3728  assertMatch: "relation type=site";
    3829  assertNoMatch: "relation type=site site=administrative";
    39 }
    40 
    41 relation[type=public_transport][!public_transport] {
    42   throwWarning: tr("{0} relation without {0} tag", "public_transport");
    4330  assertMatch: "relation type=public_transport";
    4431  assertNoMatch: "relation type=public_transport public_transport=stop_area";
    45 }
    46 
    47 relation[type=waterway][!waterway] {
    48   throwWarning: tr("{0} relation without {0} tag", "waterway");
    4932  assertMatch: "relation type=waterway";
    5033  assertNoMatch: "relation type=waterway waterway=river";
    51 }
    52 
    53 relation[type=enforcement][!enforcement] {
    54   throwWarning: tr("{0} relation without {0} tag", "enforcement");
    5534  assertMatch: "relation type=enforcement";
    5635  assertNoMatch: "relation type=enforcement enforcement=maxspeed";
Note: See TracChangeset for help on using the changeset viewer.