Changeset 17051 in josm for trunk/resources/data/validator


Ignore:
Timestamp:
2020-09-22T18:04:21+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #19603 - Warn about suspicious tag combinations with footway=* (based on patch by Famlam)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/combinations.mapcss

    r17050 r17051  
    834834  group: tr("suspicious tag combination");
    835835}
     836
     837/* #19603 */
     838way[footway][highway][footway=sidewalk ][highway!~/^(path|footway|cycleway|construction|proposed)$/] {
     839  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     840  group: tr("suspicious tag combination");
     841  suggestAlternative: "sidewalk=left";
     842  suggestAlternative: "sidewalk=right";
     843  suggestAlternative: "sidewalk=both";
     844  suggestAlternative: "sidewalk=separate";
     845}
     846way[footway][highway][footway!=sidewalk][highway!~/^(path|footway|cycleway|construction|proposed)$/] {
     847  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     848  group: tr("suspicious tag combination");
     849}
     850way[footway][!highway][!/:highway$/],
     851way[cycleway][!highway][!/:highway$/] {
     852  throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
     853  group: tr("missing tag");
     854  assertNoMatch: "way footway=sidewalk abandoned:highway=unclassified";
     855}
Note: See TracChangeset for help on using the changeset viewer.