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

Last change on this file since 9495 was 7937, checked in by bastiK, 5 years ago

add subversion property svn:eol=native

  • Property svn:eol-style set to native
File size: 637 bytes
RevLine 
[6548]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
[7228]8*[power =~ /^(line|minor_line|cable)$/][!voltage],
[6548]9*[power=substation][!substation],
10*[power=transformer][!transformer] {
11  throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
[7228]12  assertMatch: "way power=line";
13  assertNoMatch: "way power=line voltage=1";
14  assertNoMatch: "way power=cable_distribution_cabinet";
[6548]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.