source: josm/trunk/data/validator/power.mapcss @ 7228

Last change on this file since 7228 was 7228, checked in by Don-vip, 5 years ago

fix #10118 - review power warning levels

File size: 637 bytes
Line 
1/* power related stuff (incomplete) */
2
3*[substation][power!=substation],
4*[transformer][!power] {
5  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}");
12  assertMatch: "way power=line";
13  assertNoMatch: "way power=line voltage=1";
14  assertNoMatch: "way power=cable_distribution_cabinet";
15  assertMatch: "way power=substation";
16  assertMatch: "way power=substation transformer=foobar";
17  assertNoMatch: "way power=substation substation=foobar";
18}
Note: See TracBrowser for help on using the repository browser.