Changeset 6601 in josm for trunk/data/validator


Ignore:
Timestamp:
2014-01-02T23:58:58+01:00 (11 years ago)
Author:
simon04
Message:

see #9414 fix #9485 - MapCSSTagChecker: add support for set class_name instruction and .class_name condition

File:
1 edited

Legend:

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

    r6550 r6601  
     1way[highway=~/^(motorway|trunk|primary|secondary|tertiary)(_link)?$/] {
     2  set major_road;
     3}
     4way[highway=~/^(unclassified|residential|living_street|service)$/] {
     5  set minor_road;
     6}
     7
    18way[highway][name =~ /(?i).* (Ave|Blvd|Br|Brg|Cct|Cir|Cl|Cr|Crct|Cres|Crt|Ct|Dr|Drv|Esp|Espl|Hwy|Ln|Mw|Mwy|Pl|Rd|Qy|Qys|Sq|St|Str|Ter|Tce|Tr|Wy)[.]?$/] {
    29  throwWarning: tr("abbreviated street name");
     
    4047}
    4148
    42 way[highway =~ /motorway|trunk|primary|secondary|tertiary/][!ref] {
     49way.major_road[!ref] {
    4350  throwOther: tr("highway without a reference");
    4451  assertMatch: "way highway=primary";
     
    4653}
    4754
    48 way[foot][highway =~ /motorway|trunk|primary|secondary|tertiary/] {
    49   throwWarning: tr("{0} used with {1}", "{0.key}", "{1.tag}");
     55way.major_road[foot] {
     56  throwWarning: tr("{0} used with {1}", tr("major road"), "{0.tag}");
    5057  suggestAlternative: "sidewalk";
    51   suggestAlternative: "separate footway";
     58  suggestAlternative: tr("separate footway");
    5259  assertMatch: "way highway=primary foot=yes";
    5360  assertNoMatch: "way highway=primary";
Note: See TracChangeset for help on using the changeset viewer.