Changeset 11364 in josm for trunk/data


Ignore:
Timestamp:
2016-12-07T16:50:46+01:00 (2 years ago)
Author:
Klumbumbus
Message:

see #10976 - disable autofix for footway to sidewalk warning if another key which contains footway: is present

File:
1 edited

Legend:

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

    r11337 r11364  
    9292}
    9393
    94 /* footway, see #10851 */
    95 way[footway=left],
    96 way[footway=right],
    97 way[footway=both],
    98 way[footway=no] {
     94/* footway, see #10851, #10976 */
     95way[footway=left][/footway:/],
     96way[footway=right][/footway:/],
     97way[footway=both][/footway:/],
     98way[footway=no][/footway:/] {
     99  throwWarning: tr("{0} is deprecated, use {1} instead. Also check similar tags like {2}", "{0.tag}", "sidewalk", "{1.key}");
     100  group: tr("deprecated tagging");
     101  set not_fixable_footway;
     102  assertMatch: "way footway=both footway:surface=asphalt";
     103}
     104way[footway=none][/footway:/] {
     105  throwWarning: tr("{0} is deprecated, use {1} instead. Also check similar tags like {2}", "{0.tag}", "sidewalk=no", "{1.key}");
     106  group: tr("deprecated tagging");
     107  set not_fixable_footway;
     108}
     109way[footway=left]!.not_fixable_footway,
     110way[footway=right]!.not_fixable_footway,
     111way[footway=both]!.not_fixable_footway,
     112way[footway=no]!.not_fixable_footway {
    99113  throwWarning: tr("{0} is deprecated", "{0.tag}");
    100114  suggestAlternative: "sidewalk";
    101115  group: tr("deprecated tagging");
    102116  fixChangeKey: "footway => sidewalk";
    103   set footway_to_sidewalk;
     117  set fixable_footway;
    104118}
    105 way[footway=none] {
     119way[footway=none]!.not_fixable_footway {
    106120  throwWarning: tr("{0} is deprecated", "{0.tag}");
    107121  suggestAlternative: "sidewalk=no";
     
    109123  fixRemove: "footway";
    110124  fixAdd: "sidewalk=no";
    111   set footway_to_sidewalk;
     125  set fixable_footway;
    112126}
    113 way[footway][footway!=sidewalk][footway!=crossing]!.footway_to_sidewalk { /* do not trigger this rule if already one of the two previous rules applied */
     127way[footway][footway!=sidewalk][footway!=crossing]!.fixable_footway!.not_fixable_footway { /* do not trigger this rule if already one of the 4 previous rules applied */
    114128  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");
    115129  assertNoMatch: "way footway=left";
    116130  assertNoMatch: "way footway=none";
     131  assertNoMatch: "way footway=left footway:left:surface=asphalt";
    117132  assertMatch: "way footway=bar";
    118133}
Note: See TracChangeset for help on using the changeset viewer.