source: subversion/applications/editors/josm/plugins/validator/tagchecker.cfg @ 10535

Last change on this file since 10535 was 10494, checked in by Dirk Stoecker, 12 years ago

updated

File size: 3.1 KB
RevLine 
[9269]1# JOSM TagChecker validator file
2
[9863]3# Dormat:
4# Each line specifies a certain error to be reported
[9854]5# <data type> : messagetype : <key><expression><value>
[9269]6#
[9863]7# Data type can be:
[9269]8#  node        - a node point
9#  way         - a way
10#  relation    - a relation
11#  *           - all data types
12#
[9863]13# Message type can be:
[9854]14# E            - an error
15# W            - a warning
16# I            - an low priority informational warning
17#
[9863]18# Key and value are expressions describing certain keys and values of these keys.
19# Regulator expressions are supported. In this case the expressions starts and
20# ends with // signs. If an 'i' is appended, the regular expression is
[9854]21# case insensitive.
[9269]22#
[9854]23# The * sign indicates any string.
24# The texts BOOLEAN_TRUE and BOOLEAN_FALSE in the value part indicate a special
25# handling for boolean values (yes, true, 0, false, no, ...).
26#
27# Expression can be:
[9269]28#  !=          - the key/value combination does not match
29#  ==          - the key/value combination does match
30#
[9863]31# To have more complicated expressions, multiple elements can be grouped together
32# with an logical and (&&).
[9269]33#
[9863]34# The comment at the end of a rule is displayed in validator description
[9598]35#
[9269]36# Empty lines and space signs are ignored
37
[9854]38node : W : oneway == *                                         # oneway tag on a node
39node : W : bridge == BOOLEAN_TRUE                              # bridge tag on a node
40node : W : highway == tertiary                                 # wrong highway tag on a node
41node : W : highway == secondary                                # wrong highway tag on a node
42node : W : highway == residential                              # wrong highway tag on a node
43node : W : highway == unclassified                             # wrong highway tag on a node
44node : W : highway == track                                    # wrong highway tag on a node
45way  : I : highway == secondary && ref != *                    # highway without a reference
46way  : I : highway == tertiary && ref != *                     # highway without a reference
[10479]47*    : W : highway == road                                     # temporary highway type
[9854]48*    : W : / *name */i == * && name != *                       # misspelled key name
[9909]49
[9959]50way  : W : highway == cycleway && bicycle == BOOLEAN_FALSE     # cycleway with tag bicycle
51way  : W : highway == footway && foot == BOOLEAN_FALSE         # footway with tag foot
[10024]52#way  : I : highway == cycleway && bicycle == *                 # cycleway with tag bicycle
53#way  : I : highway == footway && foot == *                     # footway with tag foot
[9909]54way  : W : highway == cycleway && cycleway == lane             # seperate cycleway as lane on a cycleway
55way  : W : highway == * && barrier == *                        # barrier used on a way
56
[10024]57#way  : I : waterway == * && layer != *                         # waterway without layer tag
[9909]58way  : I : highway == footway && maxspeed == *                 # maxspeed used for footway
59
60*    : W : layer == /\+.*/                                     # layer tag with + sign
[10065]61
[10494]62*    : I : name == /.*Strasse.*/i                              # street name contains ss
[10065]63*    : W : name == /.*Str\.?/i                                 # abbreviated street name
Note: See TracBrowser for help on using the repository browser.