source: josm/trunk/data/validator/combinations.mapcss@ 11153

Last change on this file since 11153 was 11153, checked in by Klumbumbus, 9 years ago
  • add display_values and values_sort=false for Route network values (iwn,nwn,...)
  • warn about missing sport key on pitches
  • see #13804 - group unnecessary tag warnings
  • add own colors for sport=multi|running|athletics to avoid false positive validator warning in stadiums (inner style equals MP style)
  • fix #13824 - adjust sport=equestrian|horse_racing presets
  • Property svn:eol-style set to native
File size: 22.3 KB
RevLine 
[6548]1/* Rules partially derived from Taginfo statistics - see ticket #5017
2 * Taginfo query: select keypairs.key1, keypairs.key2, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key1='waterway' and keys.key=keypairs.key2 and (key1<>'highway' or keypairs.count_all>12000) and (key1<>'railway' or keypairs.count_all>3000) and (key1<>'waterway' or keypairs.count_all>800) and key2 not like '%:%' and from_fraction_all>0.97 and 1 union select keypairs.key2, keypairs.key1, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key2='waterway' and keys.key=keypairs.key1 and (key2<>'highway' or keypairs.count_all>12000) and (key2<>'railway' or keypairs.count_all>3000) and (key2<>'waterway' or keypairs.count_all>800) and key1 not like '%:%' and from_fraction_all>0.97 and 1 order by keypairs.count_all desc limit 1000;
3 */
4
[7229]5/* {0.key} without {1.key} (warning level) */
[7906]6way[junction ][!highway][junction!=yes],
[6548]7*[lanes ][!highway],
8*[lcn ][!highway],
9*[living_street ][!highway],
10*[maintenance ][!highway],
11*[median ][!highway],
12*[motorroad ][!highway],
13*[ntd_id ][!highway],
14*[sac_scale ][!highway],
15*[sidewalk ][!highway],
16*[step_count ][!highway],
17*[tracktype ][!highway],
18*[trail_visibility ][!highway],
19*[trolley_wire ][!highway],
20*[zip_left ][!highway],
21*[zip_right ][!highway],
[6812]22*[detail ][!railway][route!=railway],
23*[eddy_current_brake ][!railway][route!=railway],
24*[electrified ][!railway][route!=railway],
25*[etcs ][!railway][route!=railway],
26*[gauge ][!railway][route!=railway],
27*[grade_of_track ][!railway][route!=railway],
28*[kursbuchstrecke ][!railway][route!=railway],
29*[lzb ][!railway][route!=railway],
30*[old_railway_operator ][!railway][route!=railway],
31*[operating_procedure ][!railway][route!=railway],
32*[pzb ][!railway][route!=railway],
33*[radio ][!railway][route!=railway],
34*[structure_gauge ][!railway][route!=railway],
35*[tilting_technology ][!railway][route!=railway],
36*[track_class ][!railway][route!=railway],
37*[tracks ][!railway][route!=railway],
38*[traffic_mode ][!railway][route!=railway],
[9794]39*[usage ][!railway][route!=railway][man_made!=pipeline],
[6812]40*[workrules ][!railway][route!=railway],
[6548]41*[stream ][!waterway],
42*[length_unit ][!waterway],
43*[llid ][!waterway],
44*[canal ][!waterway],
45*[have_riverbank ][!waterway],
46*[border_type ][!boundary],
[7490]47*[bridge:structure ][!bridge],
[8121]48*[piste:difficulty ][!piste:type],
[6548]49*[source:date ][!source],
50*[source:name ][!name],
51*[source:maxspeed:forward ][!maxspeed:forward],
52*[source:maxspeed:backward ][!maxspeed:backward],
53*[source:maxspeed:forward ][!source:maxspeed:backward],
54*[source:maxspeed:backward ][!source:maxspeed:forward],
55*[source:building ][!building],
56*[source:ref ][!ref],
57*[source:population ][!population],
58*[source:postal_code ][!postal_code],
59*[source:ele ][!ele],
60*[source:ref:INSEE ][!ref:INSEE],
61*[source:lit ][!lit],
62*[source:hgv ][!hgv],
63*[source:highway ][!highway],
64*[source:maxaxleload ][!maxaxleload],
65*[source:surface ][!surface],
66*[source:bridge ][!bridge],
67*[source:old_name ][!old_name],
68*[source:bicycle ][!bicycle],
69*[source:designation ][!designation],
70*[source:height ][!height],
71*[source:lanes ][!lanes],
[6645]72*[source:postcode ][!addr:postcode],
73*[source:housenumber ][!addr:housenumber],
74*[source:addr:postcode ][!addr:postcode],
75*[source:addr:housenumber ][!addr:housenumber],
[6548]76*[source:addr ][!/^addr:/],
77*[source:maxspeed ][!/^maxspeed:?/] {
78 throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
[11146]79 group: tr("missing tag");
[6548]80 assertMatch: "way lanes=42";
81 assertNoMatch: "way lanes=42 highway=unclassified";
82 assertMatch: "node source:addr:postcode=postman";
83 assertMatch: "node source:addr=postman";
84 assertNoMatch: "node source:addr=postman addr:housenumber=42";
85}
86
[7229]87/* {0.key} without {1.key} (info level) */
[8077]88*[lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1],
89*[lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1],
[7229]90*[leaf_type ][!leaf_cycle],
91*[leaf_cycle][!leaf_type] {
92 throwOther: tr("{0} without {1}", "{0.key}", "{1.key}");
[11146]93 group: tr("missing tag");
[7229]94}
95
[6548]96/* {0.key} without {1.tag} */
[9500]97*[transformer ][!power],
[6548]98*[fence_type ][barrier!=fence],
99*[recycling_type ][amenity!=recycling],
[7996]100*[information ][tourism!=information],
[6548]101*[board_type ][information!=board],
102*[shelter_type ][amenity!=shelter],
103*[lamp_type ][highway!=street_lamp],
104*[map_type ][information!=map],
105*[site_type ][historic!=archaeological_site],
106*[artwork_type ][tourism!=artwork],
107*[castle_type ][historic!=castle],
[7490]108*[bridge:movable ][bridge!=movable],
[8147]109*[parking ][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking)$/],
110*[cutline ][man_made!=cutline],
[6548]111*[bunker_type ][military!=bunker] {
112 throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
[11146]113 group: tr("missing tag");
[6548]114}
115
[9903]116/* {0.key} without {1.tag} or {2.tag} */
117*[substation ][power!=substation][pipeline!=substation],
118*[reservoir_type ][landuse!=reservoir][water!=reservoir] {
119 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.tag}", "{2.tag}");
[11146]120 group: tr("missing tag");
[9903]121}
122
[8080]123/* {0.tag} without {1.key} (warning level) */
[10320]124relation[route=bicycle][!network][type=route],
125relation[route=hiking][!network][type=route],
126relation[route=foot][!network][type=route],
127relation[route=horse][!network][type=route],
128relation[route=piste][!piste:type][type=route],
129relation[route=ski][!piste:type][type=route],
[7996]130*[tourism=information][!information],
[11153]131*[leisure=pitch][!sport],
[7929]132*[aeroway=terminal][!building],
[7967]133*[power=generator][!generator:source],
[7929]134*[amenity=place_of_worship][!religion] {
[7923]135 throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}");
[11146]136 group: tr("missing tag");
[7923]137}
138
[8080]139/* {0.tag} without {1.key} (info level) */
[9495]140way[power=cable ][!location],
[9500]141node[power=transformer ][!voltage],
142way[power=line ][!voltage],
143way[power=minor_line ][!voltage],
144way[power=cable ][!voltage],
145*[power=generator ][!voltage][generator:output:electricity],
146*[power=plant ][!voltage][plant:output:electricity],
147*[power=substation ][!substation],
148*[power=transformer ][!transformer],
[8080]149*[amenity=parking ][!parking],
150*[amenity=parking_entrance ][!parking] {
151 throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
[11146]152 group: tr("missing tag");
[9500]153 assertMatch: "way power=line";
154 assertNoMatch: "way power=line voltage=1";
155 assertNoMatch: "way power=switch";
156 assertMatch: "way power=substation";
157 assertMatch: "way power=substation transformer=foobar";
158 assertNoMatch: "way power=substation substation=foobar";
159 assertMatch: "way power=generator generator:output:electricity=yes";
160 assertNoMatch: "way power=generator";
161 assertNoMatch: "way power=generator generator:output:electricity=yes voltage=1";
[8080]162}
163
[6548]164/* {0.key} without {1.key} or {2.key} */
[10350]165way[oneway][!highway][!railway] {
[6548]166 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
[11146]167 group: tr("missing tag");
[6548]168}
169
170/* {0.key} without {1.key} or {2.tag} */
[10068]171*[smoothness ][!highway][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking)$/],
[9003]172*[segregated ][!highway][railway!=crossing] {
[6548]173 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.tag}");
[11146]174 group: tr("missing tag");
[6548]175}
176
[8746]177/* {0.tag} without {1.tag} (info level) see #11600 #11393 #11850 */
178*[highway=motorway][!oneway][junction!=roundabout],
179*[highway=motorway_link][!oneway][junction!=roundabout] {
[8591]180 throwOther: tr("{0} without {1}", "{0.tag}", "{1.tag}");
[11146]181 group: tr("missing tag");
[8545]182}
183
[8411]184/* {0.tag} without {1.tag} or {2.tag} */
185*[amenity=recycling][recycling_type!=container][recycling_type!=centre] {
186 throwWarning: tr("{0} without {1} or {2}", "{0.tag}", "{1.tag}", "{2.tag}");
[11146]187 group: tr("missing tag");
[8411]188}
189
[8057]190/* {0.key} without {1.key}, {2.tag} or {3.tag} */
[9003]191*[intermittent ][!waterway][natural!~/^(water|spring)$/][ford!=yes],
192*[boat ][!waterway][natural!=water][landuse!=basin] {
[8057]193 throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.tag}", "{3.tag}");
[11146]194 group: tr("missing tag");
[7767]195}
196
[6880]197/* {0.key} without {1.key}, {2.key} or {3.key} */
198*[snowplowing ][!highway][!amenity][!leisure] {
199 throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.key}");
[11146]200 group: tr("missing tag");
[6880]201}
202
[7250]203/* {0.key} without {1.key}, {2.key} or {3.tag} */
[9723]204*[incline ][!highway][!railway][aeroway!~/^(runway|taxiway)$/],
[7250]205*[toll ][!highway][!barrier][route!~/^(ferry|road)$/] {
206 throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.tag}");
[11146]207 group: tr("missing tag");
[7250]208}
209
[8437]210/* {0.tag} together with {1.key}, see #10837 */
[8043]211*[noname?][name] {
[8437]212 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
[11146]213 group: tr("suspicious tag combination");
[7818]214}
215
[10535]216/* {0.tag} together with {1.key}, see #9389, #11977, #13156 */
217way[oneway=yes][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath],
218way[oneway=yes][/:forward/][!traffic_sign:forward][bicycle:forward!=use_sidepath],
219way[oneway=-1 ][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath],
220way[oneway=-1 ][/:forward/][!traffic_sign:forward][bicycle:forward!=use_sidepath] {
[8077]221 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
[11146]222 group: tr("suspicious tag combination");
[8077]223}
224
[8044]225/* {0.tag} together with {1.tag} (info level), see #9696 */
226*[highway=footway][oneway=no] {
227 throwOther: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
[11146]228 group: tr("suspicious tag combination");
[8044]229}
230
[8117]231/* {0.tag} together with {1.tag}, see #10186 */
232*[highway=footway][bicycle=designated] {
233 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
[11146]234 group: tr("suspicious tag combination");
[8117]235}
236
[11074]237/* #11127, #13727 */
238way[waterway][bridge=yes][waterway!=weir] {
[8089]239 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.tag}");
240 suggestAlternative: "bridge=aqueduct";
[11146]241 group: tr("suspicious tag combination");
[8089]242 fixAdd: "bridge=aqueduct";
243}
[11074]244way[waterway=weir][bridge=yes][highway] {
245 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
246 suggestAlternative: "waterway=weir + ford=yes";
247 suggestAlternative: "waterway=dam";
248 suggestAlternative: tr("two objects, one with {0} and one with {1} + {2} + {3}", "{0.tag}", "{2.key}", "{1.tag}", "layer");
[11146]249 group: tr("suspicious tag combination");
[11074]250}
[8089]251
[9837]252/* only {0.key}, see #11104 #12422 */
[8054]253*[area][eval(number_of_tags()) = 1],
254*[name][eval(number_of_tags()) = 1],
[9837]255*[ref][eval(number_of_tags()) = 1],
256*[lit][eval(number_of_tags()) = 1] {
[8054]257 throwWarning: tr("incomplete object: only {0}", "{0.key}");
[11146]258 group: tr("missing tag");
[8054]259}
260/* only {0.key} and {1.key}, see #11104 */
261*[name][area][eval(number_of_tags()) = 2],
262*[name][ref][eval(number_of_tags()) = 2] {
263 throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.key}");
[11146]264 group: tr("missing tag");
[8054]265}
266
[10350]267/* #9811, #11491, #12865 */
[8049]268*[place][place!=farm][/^addr:/],
[8043]269*[boundary][/^addr:/],
[8730]270*[highway][/^addr:/][highway!=services][highway!=rest_area][!"addr:postcode"] {
[8043]271 throwWarning: tr("{0} together with addr:*", "{0.key}");
[11146]272 group: tr("suspicious tag combination");
[8043]273}
[8730]274*[!highway][postal_code]["addr:postcode"][postal_code=*"addr:postcode"] {
275 throwWarning: tr("{0} together with {1}", "{1.key}", "{2.key}");
[11146]276 group: tr("suspicious tag combination");
[8730]277}
278*[!highway][postal_code]["addr:postcode"][postal_code!=*"addr:postcode"] {
279 throwWarning: tr("{0} together with {1} and conflicting values", "{1.key}", "{2.key}");
[11146]280 group: tr("suspicious tag combination");
[8730]281}
282way[highway][postal_code]["addr:postcode"][postal_code=*"addr:postcode"] {
283 throwWarning: tr("{0} together with {1}", "{1.key}", "{2.key}");
[11146]284 group: tr("suspicious tag combination");
[8730]285 fixRemove: "addr:postcode";
286}
287way[highway][postal_code]["addr:postcode"][postal_code!=*"addr:postcode"] {
288 throwWarning: tr("{0} together with {1} and conflicting values", "{1.key}", "{2.key}");
[11146]289 group: tr("suspicious tag combination");
[8730]290}
[10272]291way[highway][highway!=services][highway!=rest_area][!postal_code]["addr:postcode"] {
[11052]292 throwWarning: tr("{0} together with {1}", "{0.key}", "{4.key}");
[8730]293 suggestAlternative: "postal_code";
[11146]294 group: tr("suspicious tag combination");
[8730]295 fixChangeKey: "addr:postcode=>postal_code";
296}
[8043]297
[10350]298/* #9195 */
[8042]299*[highway=footway][cycleway=lane] {
300 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
[8046]301 suggestAlternative: "highway=path + foot=designated + bicycle=designated + segregated=yes";
[11146]302 group: tr("suspicious tag combination");
[8042]303}
304
[6548]305/* {0} on suspicious object */
306*[tunnel ][!highway][!railway][!waterway][public_transport != platform][man_made != pipeline],
307*[bridge ][!highway][!railway][!waterway][!piste:type][public_transport != platform][man_made !~ /^(bridge|pipeline)$/][building != bridge],
308*[psv ][!highway][!railway][!waterway][amenity !~ /^parking.*/],
309*[width ][!highway][!railway][!waterway][!aeroway][!cycleway][!footway][!barrier][!man_made][!entrance],
[9837]310*[maxspeed][!highway][!railway][traffic_sign !~ /^((.*;)?maxspeed(;.*)?|[A-Z][A-Z]:.+)$/][type != enforcement][waterway !~ /^(river|canal|lock)$/][!traffic_calming] {
[6548]311 throwWarning: tr("{0} on suspicious object", "{0.key}");
[11146]312 group: tr("suspicious tag combination");
[6548]313}
314
[11146]315node[amenity][amenity =~ /^(restaurant|cafe|fast_food)$/][!name][noname!=yes] {
316 throwOther: tr("{0} without {1}", "{0.tag}", "{2.key}");
317 group: tr("missing tag");
[6548]318 assertMatch: "node amenity=restaurant";
[7932]319 assertNoMatch: "node amenity=restaurant noname=yes";
[6548]320 assertNoMatch: "node amenity=restaurant name=Foobar";
321}
322
[6550]323way[highway][barrier],
[8559]324*[highway][waterway][waterway!=dam][waterway!=weir],
[7265]325way[highway][natural],
[6548]326*[landuse][building] {
[11146]327 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
328 group: tr("suspicious tag combination");
[7265]329 assertNoMatch: "node highway=street_lamp natural=birds_nest note=josm#10193";
[6548]330}
331
[10350]332/* #6932 */
[10798]333*[natural=water][leisure=swimming_pool] {
[6548]334 throwWarning: tr("natural water used for swimming pool");
[11146]335 group: tr("suspicious tag combination");
[7274]336 fixRemove: "natural";
[6548]337}
[6860]338
[10350]339/* #9593, #11183, #12418, #12761 */
[11133]340*[sport][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink|horse_riding)$/][natural !~ /^(beach|bare_rock|cliff|peak|water)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/][barrier !~ /^(wall|retaining_wall)$/][!"piste:type"][shop!=sports] {
[6860]341 throwWarning: tr("sport without physical feature");
[11146]342 group: tr("missing tag");
[6860]343 assertMatch: "node sport=tennis";
344 assertNoMatch: "node sport=tennis leisure=pitch";
345 assertNoMatch: "node sport=beachvolleyball natural=beach";
346 assertNoMatch: "node sport=skiiing landuse=piste";
347 assertNoMatch: "node sport=swimming tourism=hotel";
348 assertNoMatch: "node sport=10pin amenity=restaurant";
[7243]349}
350
[10350]351/* #10140 */
[7243]352*[building:levels][!building][!building:part] {
353 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
[11146]354 group: tr("missing tag");
[7243]355}
[7488]356
[8480]357/* any other *_name tag (with some exceptions) but not a name , see #10837 #11297 #11539 */
358*[/_name$/][!name][!old_name][!loc_name][!uic_name][!artist_name][!"osak:municipality_name"][!"osak:street_name"][noname!=yes] {
[7818]359 throwWarning: tr("alternative name without {0}", "{1.key}");
[11146]360 group: tr("missing tag");
[7818]361}
362
[10350]363/* #10837 */
[9386]364way[destination][!oneway?][junction!=roundabout][highway] {
[7818]365 throwWarning: tr("incomplete usage of {0} on a way without {1}", "{0.key}", "{1.key}");
366 suggestAlternative: "destination:forward";
367 suggestAlternative: "destination:backward";
[8700]368}
369
[10350]370/* #11389 */
[8700]371way["maxspeed:forward"=*"maxspeed:backward"][!maxspeed] {
372 throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
373 suggestAlternative: "maxspeed";
[11146]374 group: tr("suspicious tag combination");
[8700]375 fixChangeKey: "maxspeed:forward=>maxspeed";
376 fixRemove: "maxspeed:backward";
377}
378way["maxspeed:forward"=*maxspeed]["maxspeed:backward"=*maxspeed][maxspeed] {
379 throwWarning: tr("Same value of {0}, {1} and {2}", "{0.key}", "{1.key}", "{2.key}");
380 set AllSameMaxspeed;
381 suggestAlternative: "maxspeed";
[11146]382 group: tr("suspicious tag combination");
[8700]383 fixRemove: "maxspeed:forward";
384 fixRemove: "maxspeed:backward";
385}
386way["maxspeed:forward"]["maxspeed:backward"][maxspeed]!.AllSameMaxspeed {
387 throwWarning: tr("{0} and {1} together with {2} and conflicting values", "{0.key}", "{1.key}", "{2.key}");
[11146]388 group: tr("suspicious tag combination");
[8700]389}
390way["maxspeed:forward"][maxspeed][!"maxspeed:backward"],
391way["maxspeed:backward"][maxspeed][!"maxspeed:forward"] {
392 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
[11146]393 group: tr("suspicious tag combination");
[8754]394}
395
[10350]396/* #11837 */
[8754]397way[layer][layer<0][bridge][bridge!=no][location!=underground][indoor!=yes][!tunnel],
398way[layer][layer>0][tunnel][tunnel!=no][location!=overground][indoor!=yes][!bridge] {
[11146]399 throwWarning: tr("{0} together with {1}", "{2.tag}", "{0.tag}");
400 group: tr("suspicious tag combination");
[10350]401}
402
403/* #12942 */
404relation[oneway][type!=route] {
405 throwWarning: tr("{0} on a relation without {1}", "{0.key}", "{1.tag}");
[10388]406}
407
408/* #9182 */
[10419]409way[waterway][layer][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) > 400] {
410 throwWarning: tr("Long waterway with {0} but without a tag which defines it as tunnel or underground. Remove {1} or add a tunnel tag if applicable. Also check crossing bridges and their {1} tags.", "{1.tag}", "{1.key}");
[11146]411 group: tr("suspicious tag combination");
[10388]412}
[10419]413way[waterway][layer][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) <= 400] {
414 throwOther: tr("Short waterway with {0} but without a tag which defines it as tunnel or underground. Remove {1} or add a tunnel tag if applicable. Also check crossing bridges and their {1} tags.", "{1.tag}", "{1.key}");
[11146]415 group: tr("suspicious tag combination");
[10537]416}
417
418/* #13144 */
419*[unisex=yes][female=yes][male!=yes],
420*[unisex=yes][male=yes][female!=yes] {
421 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
[11146]422 group: tr("suspicious tag combination");
[10537]423}
424*[unisex=yes][female=yes][male=yes] {
425 throwWarning: tr("{0} together with {1} and {2}. Remove {1} and {2}", "{0.tag}", "{1.tag}", "{2.tag}");
[11146]426 group: tr("suspicious tag combination");
[10537]427 fixRemove: "female";
428 fixRemove: "male";
429}
430*[female=yes][male=yes][!unisex][shop=hairdresser] { /* for toilets male=yes female=yes unisex=no combination is valid */
431 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
432 suggestAlternative: "unisex=yes";
[11146]433 group: tr("suspicious tag combination");
[10537]434 fixRemove: "female";
435 fixRemove: "male";
436 fixAdd: "unisex=yes";
[10538]437}
438
439/* #13138 */
440area:closed[water][natural!=water][water!=intermittent] { /* water=intermittent is deprecated and has an own warning */
441 throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
[11146]442 group: tr("missing tag");
[10538]443 fixAdd: "natural=water";
444}
445way!:closed[water][natural!=water][water!=intermittent] {
446 throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
[11146]447 group: tr("missing tag");
[10995]448}
449
450/* see #8519, #11529, limited to motorways and trunks to avoid false positives for streets with lanes for non motorized traffic */
451way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][turn:lanes ][tag(lanes)!=eval(count(split("|", tag("turn:lanes"))))],
452way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][change:lanes ][tag(lanes)!=eval(count(split("|", tag("change:lanes"))))],
453way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][maxspeed:lanes ][tag(lanes)!=eval(count(split("|", tag("maxspeed:lanes"))))],
454way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][minspeed:lanes ][tag(lanes)!=eval(count(split("|", tag("minspeed:lanes"))))],
455way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:lanes ][tag(lanes)!=eval(count(split("|", tag("destination:lanes"))))],
456way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:ref:lanes ][tag(lanes)!=eval(count(split("|", tag("destination:ref:lanes"))))],
457way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:symbol:lanes][tag(lanes)!=eval(count(split("|", tag("destination:symbol:lanes"))))] {
458 throwWarning: tr("Different number of lanes in the keys {0} and {1}", "{1.key}", "{2.key}");
[11146]459 group: tr("suspicious tag combination");
[11047]460}
461
462/* #13680 */
463area[golf=bunker][natural=beach] {
464 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
465 suggestAlternative: "natural=sand";
466 suggestAlternative: "surface=sand";
[11146]467 group: tr("suspicious tag combination");
[11080]468}
469
470/* #13705 */
471relation[type=multipolygon][building] > way {
472 set part_of_building_MP;
473}
474way["addr:housenumber"][!building][!"building:part"][!"demolished:building"][!note][!amenity][!leisure][!landuse][!man_made][!tourism][!barrier]!.part_of_building_MP {
475 /* don't exclude shop because a lot of real missing bulding tag cases have a shop tag. */
[11146]476 throwOther: tr("possibly missing {0} tag", "{1.key}");
477 group: tr("missing tag");
[7818]478}
Note: See TracBrowser for help on using the repository browser.