Changeset 16316 in josm


Ignore:
Timestamp:
2020-04-16T21:12:58+02:00 (5 years ago)
Author:
Klumbumbus
Message:

improve validation for the key seats

Location:
trunk/resources/data
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/defaultpresets.xml

    r16295 r16316  
    42424242            <combo key="material" text="Material" values="concrete,metal,plastic,stone,wood" />
    42434243            <combo key="colour" text="Color (HTML name or hexadecimal code)" values_context="color" values="black,blue,brown,gray,green,orange,purple,red,silver,white,yellow,#CD853F" />
    4244             <combo key="seats" text="Amount of Seats" values="2,3,4,5,6,7,8,9,10" />
     4244            <combo key="seats" text="Amount of Seats" values="1,2,3,4,5,6,7,8,9,10" />
    42454245        </item> <!-- Bench -->
    42464246        <item name="Shelter" icon="presets/accommodation/shelter.svg" type="node,closedway" preset_name_label="true">
  • trunk/resources/data/validator/deprecated.mapcss

    r16185 r16316  
    19671967  group: tr("deprecated tagging");
    19681968}
     1969
     1970node[amenity=bench][capacity][!seats],
     1971way[amenity=bench][capacity][!seats] {
     1972  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
     1973  suggestAlternative: "seats";
     1974  group: tr("deprecated tagging");
     1975  fixChangeKey: "capacity => seats";
     1976}
     1977node[amenity=bench][capacity][seats],
     1978way[amenity=bench][capacity][seats] {
     1979  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
     1980  suggestAlternative: "seats";
     1981  group: tr("deprecated tagging");
     1982}
  • trunk/resources/data/validator/ignoretags.cfg

    r16278 r16316  
    137137E:amperage
    138138E:capacity
     139E:seats
    139140E:cables
    140141E:circuits
  • trunk/resources/data/validator/numeric.mapcss

    r15965 r16316  
    254254
    255255/* must be an integer positive number only and not 0, see #10837 (lanes), #11055 (screen) */
     256node[seats][seats !~ /^[1-9]([0-9]*)$/][amenity=bench],
     257way[seats][seats !~ /^[1-9]([0-9]*)$/][amenity=bench],
    256258way[lanes][lanes !~ /^[1-9]([0-9]*)$/][highway],
    257259way["lanes:backward"]["lanes:backward" !~ /^[1-9]([0-9]*)$/][highway],
Note: See TracChangeset for help on using the changeset viewer.