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

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