Ignore:
Timestamp:
2013-12-23T00:13:58+01:00 (11 years ago)
Author:
simon04
Message:

see #9414 - convert some tagchecker tests to MapCSS, extend MapCSS by test for false values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/tagchecker.cfg

    r6510 r6513  
    3737# Empty lines and space signs are ignored
    3838
    39 way  : W : highway == * && name == /.* (Ave|Blvd|Br|Brg|Cct|Cir|Cl|Cr|Crct|Cres|Crt|Ct|Dr|Drv|Esp|Espl|Hwy|Ln|Mw|Mwy|Pl|Rd|Qy|Qys|Sq|St|Str|Ter|Tce|Tr|Wy)\.?$/i               # abbreviated street name
    40 
    41 node : W : oneway == *                                                         # oneway tag on a node
    42 node : W : bridge == BOOLEAN_TRUE                                              # bridge tag on a node
    43 node : W : highway == /motorway*|trunk*|primary*|secondary*|tertiary*|unclassified|residential|service|living_street|pedestrian|track|path|footway/  # wrong highway tag on a node
    44 way  : W : /highway|railway/ == crossing                                       # wrong crossing tag on a way
    45 way  : I : highway == unclassified && name != *                                # Unnamed unclassified highway
    46 way  : I : highway == /motorway|trunk|primary|secondary|tertiary/ && ref != *  # highway without a reference
    47 *    : W : highway == road                                                     # temporary highway type
    4839*    : W : / *name */i == * && name != *                                       # misspelled key name
    4940
     
    5243#way  : W : highway == /motorway|trunk|primary|secondary|tertiary|residential|pedestrian/ && /name|ref|(name:.*)|(.*_name)|(.*_ref)/ != * # Unnamed
    5344
    54 way  : W : highway == cycleway && bicycle == BOOLEAN_FALSE     # cycleway with tag bicycle
    55 way  : W : highway == footway && foot == BOOLEAN_FALSE         # footway with tag foot
    56 #way  : I : highway == cycleway && bicycle == *                 # cycleway with tag bicycle
    57 #way  : I : highway == footway && foot == *                     # footway with tag foot
    58 way  : W : highway == cycleway && cycleway == lane             # separate cycleway as lane on a cycleway
    59 way  : W : highway == * && barrier == *                        # barrier used on a way
    60 
    61 #way  : I : waterway == * && layer != *                         # waterway without layer tag
    62 way  : I : highway == footway && maxspeed == *                 # maxspeed used for footway
    63 way  : I : highway == steps && maxspeed == *                   # maxspeed used for footway
    64 
    6545# see #5844, #6760
    6646#way  : W : oneway != BOOLEAN_FALSE && /.*:(backward|forward)/ == *    # oneway combined with *:backward/forward
    67 
    68 *    : W : layer == /\+.*/                                     # layer tag with + sign
    69 
    70 *    : I : name == /.*Strasse.*/i                              # street name contains ss
    7147
    7248relation : E : type != *                                       # relation without type
     
    217193
    218194# measurement values and units warnings (ticket #8687)
     195*   : W : layer == /\+.*/                                     # layer tag with + sign
    219196way : W : layer == * && layer != /^0$|^-?[1-5]$/                                                                         # layer should be between -5 and 5
    220197*   : W : level == * && level != /^((([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)(;(([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)*$|^-0\.5$/  # level should be numbers with optional .5 increments
Note: See TracChangeset for help on using the changeset viewer.