Changeset 7814 in josm for trunk/data/validator


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

see #10851 - add validator rules for footway=*

Location:
trunk/data/validator
Files:
2 edited

Legend:

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

    r7807 r7814  
    33node[bridge?],
    44node[sidewalk],
     5node[footway],
    56node[waterway=river],
    67node[waterway=riverbank],
  • 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.