Changeset 11305 in josm for trunk


Ignore:
Timestamp:
2016-11-25T01:00:47+01:00 (8 years ago)
Author:
Klumbumbus
Message:

limit some * validator rules to node or way when the tag is only used on this object type; remove a few rules, which are uneeded, old tags or undocumented tags

File:
1 edited

Legend:

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

    r11209 r11305  
    55/* {0.key} without {1.key} (warning level) */
    66way[junction                   ][!highway][junction!=yes],
    7 *[lanes                        ][!highway],
    8 *[living_street                ][!highway],
    9 *[maintenance                  ][!highway],
    10 *[median                       ][!highway],
    11 *[motorroad                    ][!highway],
    12 *[ntd_id                       ][!highway],
    13 *[sac_scale                    ][!highway],
    14 *[sidewalk                     ][!highway],
    15 *[step_count                   ][!highway],
    16 *[tracktype                    ][!highway],
    17 *[trail_visibility             ][!highway],
    18 *[trolley_wire                 ][!highway],
    19 *[zip_left                     ][!highway],
    20 *[zip_right                    ][!highway],
    21 *[detail                       ][!railway][route!=railway],
    22 *[eddy_current_brake           ][!railway][route!=railway],
    23 *[electrified                  ][!railway][route!=railway],
    24 *[etcs                         ][!railway][route!=railway],
    25 *[gauge                        ][!railway][route!=railway],
    26 *[grade_of_track               ][!railway][route!=railway],
    27 *[kursbuchstrecke              ][!railway][route!=railway],
    28 *[lzb                          ][!railway][route!=railway],
    29 *[old_railway_operator         ][!railway][route!=railway],
    30 *[operating_procedure          ][!railway][route!=railway],
    31 *[pzb                          ][!railway][route!=railway],
    32 *[radio                        ][!railway][route!=railway],
    33 *[structure_gauge              ][!railway][route!=railway],
    34 *[tilting_technology           ][!railway][route!=railway],
    35 *[track_class                  ][!railway][route!=railway],
    36 *[tracks                       ][!railway][route!=railway],
    37 *[traffic_mode                 ][!railway][route!=railway],
    38 *[usage                        ][!railway][route!=railway][man_made!=pipeline],
    39 *[workrules                    ][!railway][route!=railway],
    40 *[stream                       ][!waterway],
    41 *[length_unit                  ][!waterway],
    42 *[llid                         ][!waterway],
    43 *[canal                        ][!waterway],
    44 *[have_riverbank               ][!waterway],
     7way[lanes                      ][!highway],
     8way[living_street              ][!highway],
     9way[maintenance                ][!highway],
     10way[median                     ][!highway],
     11way[motorroad                  ][!highway],
     12node[ntd_id                    ][!highway],
     13way[sac_scale                  ][!highway],
     14way[sidewalk                   ][!highway],
     15way[step_count                 ][!highway],
     16way[tracktype                  ][!highway],
     17way[trail_visibility           ][!highway],
     18way[trolley_wire               ][!highway],
     19way[zip_left                   ][!highway],
     20way[zip_right                  ][!highway],
     21way[detail                     ][!railway][route!=railway],
     22way[eddy_current_brake         ][!railway][route!=railway],
     23way[electrified                ][!railway][route!=railway],
     24way[etcs                       ][!railway][route!=railway],
     25way[gauge                      ][!railway][route!=railway],
     26way[grade_of_track             ][!railway][route!=railway],
     27way[kursbuchstrecke            ][!railway][route!=railway],
     28way[lzb                        ][!railway][route!=railway],
     29way[old_railway_operator       ][!railway][route!=railway],
     30way[operating_procedure        ][!railway][route!=railway],
     31way[pzb                        ][!railway][route!=railway],
     32way[structure_gauge            ][!railway][route!=railway],
     33way[tilting_technology         ][!railway][route!=railway],
     34way[track_class                ][!railway][route!=railway],
     35way[tracks                     ][!railway][route!=railway],
     36way[traffic_mode               ][!railway][route!=railway],
     37way[usage                      ][!railway][route!=railway][man_made!=pipeline],
     38way[workrules                  ][!railway][route!=railway],
     39way[stream                     ][!waterway],
     40way[length_unit                ][!waterway],
     41way[canal                      ][!waterway],
     42way[have_riverbank             ][!waterway],
    4543*[border_type                  ][!boundary],
    46 *[bridge:structure             ][!bridge],
     44way[bridge:structure           ][!bridge],
    4745*[piste:difficulty             ][!piste:type],
    4846*[source:date                  ][!source],
     
    8583
    8684/* {0.key} without {1.key} (info level) */
    87 *[lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1],
    88 *[lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1],
     85way[lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1],
     86way[lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1],
    8987*[leaf_type ][!leaf_cycle],
    9088*[leaf_cycle][!leaf_type] {
     
    9593/* {0.key} without {1.tag} */
    9694*[transformer                  ][!power],
    97 *[fence_type                   ][barrier!=fence],
     95way[fence_type                 ][barrier!=fence],
    9896*[recycling_type               ][amenity!=recycling],
    9997*[information                  ][tourism!=information],
    100 *[board_type                   ][information!=board],
     98node[board_type                ][information!=board],
    10199*[shelter_type                 ][amenity!=shelter],
    102 *[lamp_type                    ][highway!=street_lamp],
    103 *[map_type                     ][information!=map],
     100node[lamp_type                 ][highway!=street_lamp],
     101node[map_type                  ][information!=map],
    104102*[site_type                    ][historic!=archaeological_site],
    105103*[artwork_type                 ][tourism!=artwork],
     
    107105*[bridge:movable               ][bridge!=movable],
    108106*[parking                      ][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking)$/],
    109 *[cutline                      ][man_made!=cutline],
     107way[cutline                    ][man_made!=cutline],
    110108*[bunker_type                  ][military!=bunker] {
    111109  throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
     
    175173
    176174/* {0.tag} without {1.tag} (info level) see #11600 #11393 #11850 */
    177 *[highway=motorway][!oneway][junction!=roundabout],
    178 *[highway=motorway_link][!oneway][junction!=roundabout] {
     175way[highway=motorway][!oneway][junction!=roundabout],
     176way[highway=motorway_link][!oneway][junction!=roundabout] {
    179177  throwOther: tr("{0} without {1}", "{0.tag}", "{1.tag}");
    180178  group: tr("missing tag");
     
    201199
    202200/* {0.key} without {1.key}, {2.key} or {3.tag} */
    203 *[incline                      ][!highway][!railway][aeroway!~/^(runway|taxiway)$/],
     201way[incline                    ][!highway][!railway][aeroway!~/^(runway|taxiway)$/],
    204202*[toll                         ][!highway][!barrier][route!~/^(ferry|road)$/] {
    205203  throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.tag}");
     
    223221
    224222/* {0.tag} together with {1.tag} (info level), see #9696 */
    225 *[highway=footway][oneway=no] {
     223way[highway=footway][oneway=no] {
    226224  throwOther: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
    227225  group: tr("suspicious tag combination");
     
    229227
    230228/* {0.tag} together with {1.tag}, see #10186 */
    231 *[highway=footway][bicycle=designated] {
     229way[highway=footway][bicycle=designated] {
    232230  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
    233231  group: tr("suspicious tag combination");
     
    296294
    297295/* #9195 */
    298 *[highway=footway][cycleway=lane] {
     296way[highway=footway][cycleway=lane] {
    299297  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
    300298  suggestAlternative: "highway=path + foot=designated + bicycle=designated + segregated=yes";
Note: See TracChangeset for help on using the changeset viewer.