Changeset 15268 in josm for trunk/data


Ignore:
Timestamp:
2019-08-01T21:17:11+02:00 (5 years ago)
Author:
Klumbumbus
Message:

fix #17973 - warn about Combined foot- and cycleway without segregated (except if surface is any kind of unpaved)

File:
1 edited

Legend:

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

    r15267 r15268  
    22 * Taginfo query: select keypairs.key1, keypairs.key2, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key1='waterway' and keys.key=keypairs.key2 and (key1<>'highway' or keypairs.count_all>12000) and (key1<>'railway' or keypairs.count_all>3000) and (key1<>'waterway' or keypairs.count_all>800) and key2 not like '%:%' and from_fraction_all>0.97 and 1 union select keypairs.key2, keypairs.key1, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key2='waterway' and keys.key=keypairs.key1 and (key2<>'highway' or keypairs.count_all>12000) and (key2<>'railway' or keypairs.count_all>3000) and (key2<>'waterway' or keypairs.count_all>800) and key1 not like '%:%' and from_fraction_all>0.97 and 1 order by keypairs.count_all desc limit 1000;
    33 */
     4
     5way[surface=~/^(unpaved|compacted|gravel|fine_gravel|pebblestone|ground|earth|dirt|grass|sand|mud|ice|salt|snow|woodchips)$/] { /* without grass_paver as it is controversial */
     6  set unpaved_surface;
     7}
    48
    59/* {0.key} without {1.key} (warning level) */
     
    257261/* {0.tag} together with {1.tag}, see #17623, #17592, #17594, #17542, #16861, #16147, #10186 */
    258262way[junction=yes][highway],
    259 way[tracktype=grade1][surface][surface=~/^(unpaved|compacted|gravel|fine_gravel|pebblestone|ground|earth|dirt|grass|sand|mud|ice|salt|snow|woodchips)$/],
     263way[tracktype=grade1][surface].unpaved_surface,
    260264way[tracktype=grade2][surface][surface=~/^(sand|mud)$/],
    261265way[segregated][bicycle=no],
     
    603607  fixRemove: "cycleway";
    604608}
     609
     610/* #17973 */
     611way[highway=path    ][foot][foot!=no      ][!segregated][bicycle][bicycle!=no]!.unpaved_surface,
     612way[highway=footway ][bicycle][bicycle!=no][!segregated]!.unpaved_surface,
     613way[highway=cycleway][foot][foot!=no      ][!segregated]!.unpaved_surface {
     614  throwWarning: tr("Combined foot- and cycleway without {1}.", "{3.key}");
     615  group: tr("missing tag");
     616}
Note: See TracChangeset for help on using the changeset viewer.