Changeset 17209 in josm


Ignore:
Timestamp:
2020-10-15T17:11:25+02:00 (4 years ago)
Author:
Klumbumbus
Message:

see #15667, fix #19930 - Downgrade warning about oneway on waterway to info level for navigable waterways

Location:
trunk/resources/data/validator
Files:
3 edited

Legend:

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

    r17175 r17209  
    222222}
    223223
    224 /* {0.key} without {1.key}, {2.key} or {3.key}, #17253, #19821 */
    225 way[oneway   ][!highway][!railway][!aerialway][attraction!=summer_toboggan][aeroway!~/^(runway|taxiway)$/][leisure!=track],
     224/* {0.key} without {1.key}, {2.key} or {3.key} */
    226225*[snowplowing][!highway][!amenity][!leisure] {
    227226  throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.key}");
     
    406405}
    407406
    408 /* {0} on suspicious object, #17255, #19650, #19572 */
     407/* {0} on suspicious object, #17255, #19650, #19572, #17253, #19821, #15667, #19930 */
     408way[oneway ][!highway][!railway][!aerialway][attraction!=summer_toboggan][aeroway!~/^(runway|taxiway)$/][leisure!=track][waterway !~ /^(canal|fairway|lock|river|tidal_channel)$/],
    409409node[lanes ][!barrier][!ford][highway!=mini_roundabout][!junction][leisure!~/^(bowling_alley|slipway|swimming_pool|track)$/][!traffic_calming]!.only_one_tag,
    410410way[lanes  ][!barrier][!ford][!highway                ][!junction][leisure!~/^(bowling_alley|slipway|swimming_pool|track)$/][!traffic_calming]!.only_one_tag,
     
    416416way[incline][!highway][!railway][aeroway!~/^(runway|taxiway)$/][attraction!=summer_toboggan][leisure!=slipway] {
    417417  throwWarning: tr("{0} on suspicious object", "{0.key}");
     418  group: tr("suspicious tag combination");
     419}
     420
     421/* #15667, #19930 */
     422way[waterway][oneway][waterway =~ /^(canal|fairway|lock|river|tidal_channel)$/] {
     423  throwOther: tr("{0} together with {1}. The flow direction is defined by the way direction. Use {1} on {0} only in the rare case of a access restriction.", "{0.key}", "{1.key}");
    418424  group: tr("suspicious tag combination");
    419425}
  • trunk/resources/data/validator/deprecated.mapcss

    r17153 r17209  
    545545}
    546546
    547 /* #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
    548 way[oneway=1][!waterway] {
     547/* #10346 */
     548way[oneway=1] {
    549549  throwWarning: tr("{0} is deprecated", "{0.tag}");
    550550  suggestAlternative: "oneway=yes";
     
    553553}
    554554
    555 /* #11329, #15667 */
    556 way[oneway=-1][!waterway] {
     555/* #11329 */
     556way[oneway=-1] {
    557557  throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
    558558}
  • trunk/resources/data/validator/unnecessary.mapcss

    r17147 r17209  
    6767  group: tr("unnecessary tag");
    6868  fixRemove: "payment:cash";
    69 }
    70 
    71 /* see #10346, #15667 */
    72 way[waterway][oneway?] {
    73   throwWarning: tr("{0} is unnecessary for {1}", "{1.key}", "{0.key}");
    74   group: tr("unnecessary tag");
    75   fixRemove: "{1.key}";
    76 }
    77 way[waterway][oneway=-1] {
    78   throwWarning: tr("{0} is unnecessary for {1}. The flow direction is defined by the way direction.", "{1.key}", "{0.key}");
    79   group: tr("unnecessary tag");
    8069}
    8170
Note: See TracChangeset for help on using the changeset viewer.