Changeset 13378 in josm


Ignore:
Timestamp:
2018-02-03T14:37:46+01:00 (6 years ago)
Author:
Klumbumbus
Message:

fix #15667 - adjust warnings for waterway oneway combinations

Location:
trunk/data/validator
Files:
2 edited

Legend:

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

    r13339 r13378  
    538538}
    539539
    540 /* see #10346 */
    541 way[oneway=1] {
     540/* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
     541way[oneway=1][!waterway] {
    542542  throwWarning: tr("{0} is deprecated", "{0.tag}");
    543543  suggestAlternative: "oneway=yes";
     
    546546}
    547547
    548 /* see #11329 */
    549 way[oneway=-1] {
     548/* see #11329, #15667 */
     549way[oneway=-1][!waterway] {
    550550  throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
    551551}
  • trunk/data/validator/unnecessary.mapcss

    r13377 r13378  
    5454  fixRemove: "payment:cash";
    5555}
     56
     57/* see #10346, #15667 */
     58way[waterway][oneway?] {
     59  throwWarning: tr("{0} is unnecessary for {1}", "{1.key}", "{0.key}");
     60  group: tr("unnecessary tag");
     61  fixRemove: "{1.key}";
     62}
     63way[waterway][oneway=-1] {
     64  throwWarning: tr("{0} is unnecessary for {1}. The flow direction is defined by the way direction.", "{1.key}", "{0.key}");
     65  group: tr("unnecessary tag");
     66}
Note: See TracChangeset for help on using the changeset viewer.