Ticket #22547: josm_22547.patch

File josm_22547.patch, 2.7 KB (added by skyper, 3 years ago)

patch

  • resources/data/validator/combinations.mapcss

     
    237237  assertNoMatch: "way power=generator generator:output:electricity=yes voltage=1";
    238238}
    239239
    240 /* {0.key} without {1.key} or {2.tag} */
     240/* {0.key} without {1.key} or {2.tag}, #22547 */
    241241way[bridge:structure           ][!bridge][man_made!=bridge],
    242242*[segregated                   ][!highway][railway!=crossing] {
    243243  throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.tag}");
    244244  group: tr("missing tag");
    245245}
     246way[tunnel=culvert][man_made!=tunnel][!waterway] {
     247  throwWarning: tr("{0} without {1} or {2}", "{0.tag}", "{1.tag}", "{2.key}");
     248  group: tr("suspicious tag combination");
     249  set TunnelCulvertWithoutWaterway;
     250}
    246251
    247252/* {0.tag} without {1.tag} (info level) see #11600 #11393 #11850 */
    248253way[highway=motorway][!oneway][junction!=roundabout],
     
    488493way[oneway ][!highway][!area:highway][!railway][!aerialway][attraction!=summer_toboggan][aeroway!~/^(runway|taxiway)$/][leisure!=track][waterway !~ /^(canal|fairway|lock|river|tidal_channel)$/],
    489494node[lanes ][!barrier][!ford][highway!=mini_roundabout][!junction][leisure!~/^(bowling_alley|slipway|swimming_pool|track)$/][!traffic_calming]!.only_one_tag,
    490495way[lanes  ][!barrier][!ford][!highway ][!area:highway][!junction][leisure!~/^(bowling_alley|slipway|swimming_pool|track)$/][!traffic_calming]!.only_one_tag,
    491 *[tunnel   ][!highway][!area:highway][!railway][!waterway][!piste:type][type!=tunnel][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=wildlife_crossing][man_made!=tunnel][power!=cable],
     496*[tunnel   ][!highway][!area:highway][!railway][!waterway][!piste:type][type!=tunnel][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=wildlife_crossing][man_made!=tunnel][power!=cable]!.TunnelCulvertWithoutWaterway,
    492497*[bridge   ][!highway][!area:highway][!railway][!waterway][!piste:type][type!=bridge][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=wildlife_crossing][man_made!=bridge][building!=bridge],
    493498*[psv      ][!highway][!area:highway][!railway][!waterway][barrier !~ /^(bollard|bump_gate|bus_trap|cattle_grid|chain|coupure|entrance|gate|height_restrictor|jersey_barrier|kerb|lift_gate|rope|sally_port|sliding_beam|sliding_gate|spikes|swing_gate|toll_booth|yes)$/][amenity !~ /^parking.*/],
    494499*[width    ][!highway][!area:highway][!railway][!waterway][!aeroway][!cycleway][!footway][!barrier][!man_made][!entrance][natural!=stone][leisure!=track],