1 | *[access][highway=proposed],
|
---|
2 | *[motor_vehicle?][vehicle!=no][access!=no][bicycle_road!=yes][highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|unclassified|residential|service|living_street)$/],
|
---|
3 | *[bridge=no],
|
---|
4 | *[building=no],
|
---|
5 | *[elevation="0"],
|
---|
6 | *[layer="0"] {
|
---|
7 | /* see #9365 - Useless tag layer=0 */
|
---|
8 | throwWarning: tr("{0} is unnecessary", "{0.tag}");
|
---|
9 | group: tr("unnecessary tag");
|
---|
10 | fixRemove: "{0.key}";
|
---|
11 | assertMatch: "way layer=0";
|
---|
12 | assertMatch: "way bridge=no";
|
---|
13 | assertMatch: "way highway=proposed access=no";
|
---|
14 | }
|
---|
15 |
|
---|
16 | area:closed[amenity ][area?][!highway],
|
---|
17 | area:closed[building][area?],
|
---|
18 | area:closed[landuse ][area?][!highway],
|
---|
19 | area:closed[leisure ][area?][!highway][leisure!=track][leisure!=slipway],
|
---|
20 | area:closed[natural ][area?],
|
---|
21 | area:closed[shop ][area?] {
|
---|
22 | throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.key}");
|
---|
23 | group: tr("unnecessary tag");
|
---|
24 | fixRemove: "{2.key}";
|
---|
25 | }
|
---|
26 |
|
---|
27 | /* #14256, #15664 */
|
---|
28 | area:closed[highway=rest_area][area?],
|
---|
29 | area:closed[highway=services][area?],
|
---|
30 | area:closed[aeroway=aerodrome][area?],
|
---|
31 | area:closed[aeroway=helipad][area?] {
|
---|
32 | throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.tag}");
|
---|
33 | group: tr("unnecessary tag");
|
---|
34 | fixRemove: "{2.key}";
|
---|
35 | }
|
---|
36 |
|
---|
37 | /* #17482 */
|
---|
38 | *[building:ruian:type=2][building=farm_auxiliary],
|
---|
39 | *[building:ruian:type=7][building=house],
|
---|
40 | *[building:ruian:type=11][building=hotel],
|
---|
41 | *[building:ruian:type=12][building=warehouse],
|
---|
42 | *[building:ruian:type=13][building=barn],
|
---|
43 | *[building:ruian:type=18][building=garage],
|
---|
44 | *[building:ruian:type=21][building=greenhouse] {
|
---|
45 | throwWarning: tr("{0} is unnecessary for {1}", "{0.tag}", "{1.tag}");
|
---|
46 | group: tr("unnecessary tag");
|
---|
47 | fixRemove: "{0.key}";
|
---|
48 | }
|
---|
49 |
|
---|
50 | *[emergency=permissive] {
|
---|
51 | /* see #9458 - emergency=permissive makes no sense */
|
---|
52 | throwWarning: tr("{0} makes no sense", "{0.tag");
|
---|
53 | fixAdd: "emergency=yes";
|
---|
54 | assertMatch: "way emergency=permissive";
|
---|
55 | assertNoMatch: "way emergency=designated";
|
---|
56 | }
|
---|
57 |
|
---|
58 | /* see ticket #7639 -- Warn when a node has the same tags as its parent way. */
|
---|
59 | way >:sameTags node:tagged {
|
---|
60 | throwWarning: tr("Nodes duplicating parent way tags");
|
---|
61 | }
|
---|
62 |
|
---|
63 | /* #15477 */
|
---|
64 | *[payment:cash][payment:coins][payment:notes] {
|
---|
65 | throwWarning: tr("{0} together with {1} and {2}. Remove {0}.", "{0.key}", "{1.key}", "{2.key}");
|
---|
66 | group: tr("unnecessary tag");
|
---|
67 | fixRemove: "payment:cash";
|
---|
68 | }
|
---|
69 |
|
---|
70 | /* see #10346, #15667 */
|
---|
71 | way[waterway][oneway?] {
|
---|
72 | throwWarning: tr("{0} is unnecessary for {1}", "{1.key}", "{0.key}");
|
---|
73 | group: tr("unnecessary tag");
|
---|
74 | fixRemove: "{1.key}";
|
---|
75 | }
|
---|
76 | way[waterway][oneway=-1] {
|
---|
77 | throwWarning: tr("{0} is unnecessary for {1}. The flow direction is defined by the way direction.", "{1.key}", "{0.key}");
|
---|
78 | group: tr("unnecessary tag");
|
---|
79 | }
|
---|
80 |
|
---|
81 | /* #15774 */
|
---|
82 | node[emergency=fire_hydrant][fire_hydrant:count=1] {
|
---|
83 | throwWarning: tr("{0} is unnecessary for {1}", "{1.tag}", "{0.tag}");
|
---|
84 | group: tr("unnecessary tag");
|
---|
85 | fixRemove: "{1.key}";
|
---|
86 | }
|
---|
87 |
|
---|
88 | /* #17100 */
|
---|
89 | *[name][name=~/^(?i)(parking|parkplatz)$/][amenity=parking],
|
---|
90 | *[name][name=~/^(?i)(playground|spielplatz)$/][leisure=playground],
|
---|
91 | *[name][name=~/^(?i)(shop)$/][shop][shop!=no],
|
---|
92 | *[name][name=~/^(?i)(building|house)$/][building][building!=no],
|
---|
93 | *[name][name=~/^(?i)(kiosk)$/][shop=kiosk],
|
---|
94 | *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=graveyard],
|
---|
95 | *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=cemetery] {
|
---|
96 | throwWarning: tr("{0}", "{0.tag}");
|
---|
97 | group: tr("descriptive name");
|
---|
98 | fixRemove: "name";
|
---|
99 | assertMatch: "way name=parking amenity=parking";
|
---|
100 | assertMatch: "way name=Parking amenity=parking";
|
---|
101 | assertMatch: "node name=parking amenity=parking";
|
---|
102 | assertMatch: "node name=Parking amenity=parking";
|
---|
103 | assertNoMatch: "node name=Parking_with_suffix amenity=parking";
|
---|
104 | assertNoMatch: "node name=Megaparking amenity=parking";
|
---|
105 | assertMatch: "relation name=parking amenity=parking type=multipolygon";
|
---|
106 | assertMatch: "relation name=Parking amenity=parking type=multipolygon";
|
---|
107 | assertNoMatch: "way name=parking";
|
---|
108 | assertMatch: "relation name=PLAYGROUND leisure=playground type=multipolygon";
|
---|
109 | assertMatch: "node name=PLaYGrOUNd leisure=playground";
|
---|
110 | assertNoMatch: "way name=playground";
|
---|
111 | assertMatch: "node name=shop shop=whatever";
|
---|
112 | assertNoMatch: "node name=shop shop=no";
|
---|
113 | assertNoMatch: "way name=shop leisure=playground";
|
---|
114 | assertMatch: "way name=building building=yes";
|
---|
115 | assertNoMatch: "way building=yes";
|
---|
116 | assertMatch: "way name=kiosk building=yes shop=kiosk";
|
---|
117 | assertNoMatch: "way name=kiosk building=yes";
|
---|
118 | assertMatch: "way name=cemetery amenity=graveyard";
|
---|
119 | assertMatch: "way name=cmentarz amenity=graveyard";
|
---|
120 | assertMatch: "way name=Cmentarz amenity=graveyard";
|
---|
121 | assertNoMatch: "way name=kiosk amenity=graveyard";
|
---|
122 | }
|
---|