Ignore:
Timestamp:
2014-12-17T00:26:03+01:00 (9 years ago)
Author:
Klumbumbus
Message:

see #10851 - add validator rules for footway=*

File:
1 edited

Legend:

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

    r7281 r7814  
    9090  assertNoMatch: "way name=Foobarstraße";
    9191}
     92
     93/* footway, see #10851 */
     94way[footway=left],
     95way[footway=right],
     96way[footway=both],
     97way[footway=no] {
     98  throwWarning: tr("{0} is deprecated", "{0.tag}");
     99  suggestAlternative: "sidewalk";
     100  fixChangeKey: "footway => sidewalk";
     101  set footway_to_sidewalk;
     102}
     103way[footway=none] {
     104  throwWarning: tr("{0} is deprecated", "{0.tag}");
     105  suggestAlternative: "sidewalk=no";
     106  fixRemove: "footway";
     107  fixAdd: "sidewalk=no";
     108  set footway_to_sidewalk;
     109}
     110way[footway][footway!=sidewalk][footway!=crossing]!.footway_to_sidewalk { /* do not trigger this rule if already one of the two previous rules applied */
     111  throwWarning: tr("Value of ''{0}'' should either be ''{1}'' or ''{2}''. For sidewalks use ''{3}'' instead.", "{0.key}", "{1.value}", "{2.value}", "sidewalk=left|right|both|no");
     112}
Note: See TracChangeset for help on using the changeset viewer.