Changeset 10388 in josm


Ignore:
Timestamp:
2016-06-15T17:34:44+02:00 (8 years ago)
Author:
Klumbumbus
Message:

fix #9182 - warn about waterways with negative layer but without a tunnel tag. (if <400m then only at info level)

File:
1 edited

Legend:

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

    r10350 r10388  
    366366  throwWarning: tr("{0} on a relation without {1}", "{0.key}", "{1.tag}");
    367367}
     368
     369/* #9182 */
     370way[waterway][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) > 400] {
     371  throwWarning: tr("Long waterway with negative {0} but without a {1} tag. Remove {0} or add a {1} tag if applicable. Also check crossing bridges and their {0} tags.", "{1.key}", "{2.key}");
     372}
     373way[waterway][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) < 400] {
     374  throwOther: tr("Short waterway with negative {0} but without a {1} tag. Remove {0} or add a {1} tag if applicable. Also check crossing bridges and their {0} tags.", "{1.key}", "{2.key}");
     375}
Note: See TracChangeset for help on using the changeset viewer.