source: josm/trunk/data/tagchecker.cfg@ 4776

Last change on this file since 4776 was 4544, checked in by Don-vip, 13 years ago

fix #6932 - Add private swimming pool preset and check for natural=water tag presence on swimming pools

  • Property svn:eol-style set to native
File size: 4.9 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# Lines starting with a # are considered as comments.
7#
8# Data type can be:
9# node - a node point
10# way - a way
11# relation - a relation
12# * - all data types
13#
14# Message type can be:
15# E - an error
16# W - a warning
17# I - an low priority informational warning
18#
19# Key and value are expressions describing certain keys and values of these keys.
20# Regulator expressions are supported. In this case the expressions starts and
21# ends with a / sign. If an 'i' is appended, the regular expression is
22# case insensitive. For instance, /foo|bar/i
23#
24# The * sign indicates any string.
25# The texts BOOLEAN_TRUE and BOOLEAN_FALSE in the value part indicate a special
26# handling for boolean values (yes, true, 0, false, no, ...).
27#
28# Expression can be:
29# != - the key/value combination does not match
30# == - the key/value combination does match
31#
32# To have more complicated expressions, multiple elements can be grouped together
33# with an logical and (&&).
34#
35# The comment at the end of a rule is displayed in validator description
36#
37# Empty lines and space signs are ignored
38
39way : W : highway == * && name == /.* (Ave|Blvd|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
41node : W : oneway == * # oneway tag on a node
42node : W : bridge == BOOLEAN_TRUE # bridge tag on a node
43node : W : highway == tertiary # wrong highway tag on a node
44node : W : highway == secondary # wrong highway tag on a node
45node : W : highway == residential # wrong highway tag on a node
46node : W : highway == unclassified # wrong highway tag on a node
47node : W : highway == track # wrong highway tag on a node
48way : I : highway == unclassified && name != * # Unnamed unclassified highway
49way : I : highway == secondary && ref != * # highway without a reference
50way : I : highway == tertiary && ref != * # highway without a reference
51way : I : highway == motorway && nat_ref != * # highway without a reference
52* : W : highway == road # temporary highway type
53* : W : / *name */i == * && name != * # misspelled key name
54
55# The following could replace unnamed way check. Still at the moment we keep it as it is
56#way : W : junction == roundabout && highway == /motorway|trunk|primary|secondary|tertiary|residential|pedestrian/ && /name|ref|(name:.*)|(.*_name)|(.*_ref)/ != * # Unnamed junction
57#way : W : highway == /motorway|trunk|primary|secondary|tertiary|residential|pedestrian/ && /name|ref|(name:.*)|(.*_name)|(.*_ref)/ != * # Unnamed
58
59way : W : highway == cycleway && bicycle == BOOLEAN_FALSE # cycleway with tag bicycle
60way : W : highway == footway && foot == BOOLEAN_FALSE # footway with tag foot
61#way : I : highway == cycleway && bicycle == * # cycleway with tag bicycle
62#way : I : highway == footway && foot == * # footway with tag foot
63way : W : highway == cycleway && cycleway == lane # separate cycleway as lane on a cycleway
64way : W : highway == * && barrier == * # barrier used on a way
65
66#way : I : waterway == * && layer != * # waterway without layer tag
67way : I : highway == footway && maxspeed == * # maxspeed used for footway
68way : I : highway == steps && maxspeed == * # maxspeed used for footway
69
70# see #5844, #6760
71#way : W : oneway != BOOLEAN_FALSE && /.*:(backward|forward)/ == * # oneway combined with *:backward/forward
72
73* : W : layer == /\+.*/ # layer tag with + sign
74
75* : I : name == /.*Strasse.*/i # street name contains ss
76
77relation : E : type != * # relation without type
78
79node : I : amenity == /restaurant|cafe|fast_food/ && name != * # restaurant without name
80#way : I : highway != * && railway != * && waterway != * && name == * # unusual named way type
81#* : W : natural == water && waterway == * # unusual tag combination (natural=water & waterway)
82* : W : highway == * && waterway == * # unusual tag combination (highway & waterway)
83* : W : highway == * && natural == * # unusual tag combination (highway & natural)
84
85* : W : natural == water && leisure == swimming_pool # natural water used for swimming pool
86* : W : natural == water && amenity == swimming_pool # natural water used for swimming pool
Note: See TracBrowser for help on using the repository browser.