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

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

added some tests from wiki

File size: 3.8 KB
Line 
1# JOSM TagChecker validator file
2
3# Format:
4# Each line specifies a certain error to be reported
5# <data type> : messagetype : <key><expression><value>
6#
7# Data type can be:
8#  node        - a node point
9#  way         - a way
10#  relation    - a relation
11#  *           - all data types
12#
13# Message type can be:
14# E            - an error
15# W            - a warning
16# I            - an low priority informational warning
17#
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
21# case insensitive.
22#
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:
28#  !=          - the key/value combination does not match
29#  ==          - the key/value combination does match
30#
31# To have more complicated expressions, multiple elements can be grouped together
32# with an logical and (&&).
33#
34# The comment at the end of a rule is displayed in validator description
35#
36# Empty lines and space signs are ignored
37
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
47way  : I : highway == motorway && nat_ref != *                 # highway without a reference
48*    : W : highway == road                                     # temporary highway type
49*    : W : / *name */i == * && name != *                       # misspelled key name
50
51way  : W : highway == cycleway && bicycle == BOOLEAN_FALSE     # cycleway with tag bicycle
52way  : W : highway == footway && foot == BOOLEAN_FALSE         # footway with tag foot
53#way  : I : highway == cycleway && bicycle == *                 # cycleway with tag bicycle
54#way  : I : highway == footway && foot == *                     # footway with tag foot
55way  : W : highway == cycleway && cycleway == lane             # separate cycleway as lane on a cycleway
56way  : W : highway == * && barrier == *                        # barrier used on a way
57
58#way  : I : waterway == * && layer != *                         # waterway without layer tag
59way  : I : highway == footway && maxspeed == *                 # maxspeed used for footway
60
61*    : W : layer == /\+.*/                                     # layer tag with + sign
62
63*    : I : name == /.*Strasse.*/i                              # street name contains ss
64*    : W : name == /.*Str\.?/i                                 # abbreviated street name
65
66relation : E : type != *                                       # relation without type
67
68node : I : amenity == /restaurant|cafe|fast_food/ && name != * # Restaurant without name
69way  : I : highway != * && railway != * && waterway != * && name == * # unusual named way type
70*    : W : natural == water && waterway == *                   # unusual tag combination
71*    : W : highway == * && waterway == *                       # unusual tag combination
72*    : W : highway == * && natural == *                        # unusual tag combination
Note: See TracBrowser for help on using the repository browser.