Changeset 7228 in josm for trunk


Ignore:
Timestamp:
2014-06-09T14:24:34+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10118 - review power warning levels

File:
1 edited

Legend:

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

    r6924 r7228  
    11/* power related stuff (incomplete) */
    22
    3 *[power =~ /^(line|minor_line|cable)$/][!voltage],
    43*[substation][power!=substation],
    54*[transformer][!power] {
    65  throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
     6}
     7
     8*[power =~ /^(line|minor_line|cable)$/][!voltage],
     9*[power=substation][!substation],
     10*[power=transformer][!transformer] {
     11  throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
    712  assertMatch: "way power=line";
    813  assertNoMatch: "way power=line voltage=1";
    914  assertNoMatch: "way power=cable_distribution_cabinet";
    10 }
    11 
    12 *[power=substation][!substation],
    13 *[power=transformer][!transformer] {
    14   throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
    1515  assertMatch: "way power=substation";
    1616  assertMatch: "way power=substation transformer=foobar";
Note: See TracChangeset for help on using the changeset viewer.