Changeset 9050 in josm for trunk


Ignore:
Timestamp:
2015-11-21T18:12:08+01:00 (9 years ago)
Author:
Klumbumbus
Message:

see #12102 - ignore man_made=petroleum_well, add validator warning for unusual value of admin_level

Location:
trunk/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/defaultpresets.xml

    r9049 r9050  
    77027702            <key key="boundary" value="administrative" />
    77037703            <text key="name" text="Name" />
    7704             <combo key="admin_level" text="Administrative level" values="1,2,3,4,5,6,7,8,9,10" />
     7704            <combo key="admin_level" text="Administrative level" values="1,2,3,4,5,6,7,8,9,10,11" />
    77057705            <check key="maritime" text="Maritime" disable_off="true" />
    77067706        </item> <!-- Administrative -->
     
    88678867            <combo key="boundary" text="Boundary type" values="administrative,maritime,national_park,political,postal_code,protected_area" values_searchable="true" />
    88688868            <optional>
    8869                 <combo key="admin_level" text="Administrative level" values="1,2,3,4,5,6,7,8,9,10" />
     8869                <combo key="admin_level" text="Administrative level" values="1,2,3,4,5,6,7,8,9,10,11" />
    88708870            </optional>
    88718871            <roles>
  • trunk/data/validator/ignoretags.cfg

    r9047 r9050  
    3939E:loc_name
    4040E:attribution
    41 E:admin_level
    4241E:heritage
    4342E:old_name
     
    9493K:bicycle=dismount
    9594K:wall=no
     95K:man_made=petroleum_well
    9696;
    9797; Highway Key/Value Pairs
  • trunk/data/validator/numeric.mapcss

    r8725 r9050  
    175175  assertNoMatch: "node amenity=cinema screen=8";
    176176}
     177*[admin_level][admin_level !~ /^(1|2|3|4|5|6|7|8|9|10|11|12)$/] {
     178  throwWarning: tr("unusual value of {0}", "admin_level");
     179  assertMatch: "node admin_level=0";
     180  assertMatch: "node admin_level=-1";
     181  assertMatch: "node admin_level=13";
     182  assertNoMatch: "node admin_level=5";
     183}
Note: See TracChangeset for help on using the changeset viewer.