Changeset 9500 in josm for trunk/data/validator


Ignore:
Timestamp:
2016-01-17T14:24:16+01:00 (4 years ago)
Author:
Klumbumbus
Message:

see #12386 - remove support of power=transformer on ways and add validator warning. add validator info for some power features without voltage, adjust presets, integrate separate power.mapcss in combinations.mapcss

Location:
trunk/data/validator
Files:
1 deleted
2 edited

Legend:

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

    r9495 r9500  
    9393
    9494/* {0.key} without {1.tag} */
     95*[substation                   ][power!=substation],
     96*[transformer                  ][!power],
    9597*[fence_type                   ][barrier!=fence],
    9698*[recycling_type               ][amenity!=recycling],
     
    121123/* {0.tag} without {1.key} (info level) */
    122124way[power=cable                ][!location],
     125node[power=transformer         ][!voltage],
     126way[power=line                 ][!voltage],
     127way[power=minor_line           ][!voltage],
     128way[power=cable                ][!voltage],
     129*[power=generator              ][!voltage][generator:output:electricity],
     130*[power=plant                  ][!voltage][plant:output:electricity],
     131*[power=substation             ][!substation],
     132*[power=transformer            ][!transformer],
    123133*[amenity=parking              ][!parking],
    124134*[amenity=parking_entrance     ][!parking] {
    125135  throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
     136  assertMatch: "way power=line";
     137  assertNoMatch: "way power=line voltage=1";
     138  assertNoMatch: "way power=switch";
     139  assertMatch: "way power=substation";
     140  assertMatch: "way power=substation transformer=foobar";
     141  assertNoMatch: "way power=substation substation=foobar";
     142  assertMatch: "way power=generator generator:output:electricity=yes";
     143  assertNoMatch: "way power=generator";
     144  assertNoMatch: "way power=generator generator:output:electricity=yes voltage=1";
    126145}
    127146
  • trunk/data/validator/geometry.mapcss

    r9494 r9500  
    8282way[entrance],
    8383way[man_made=survey_point],
     84way[power=transformer],
    8485way[power=pole],
    8586way[power=tower]!:closed,
Note: See TracChangeset for help on using the changeset viewer.