abalosc1

combinations overpass query

Sep 4th, 2019
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //combinations query-based on JOSM combinations.mapcss
  2. //Features that are missing tags, or features that have tag combinations that do not make sense
  3. [out:json][bbox:{{bbox}}];
  4.  
  5. // Tag Combination Warnings from combinations.mapcss JOSM validator
  6. (
  7. way[junction][!highway][junction!=yes];
  8. way[lanes][!highway][leisure!=track][leisure!=swimming_pool];
  9. way[living_street][!highway];
  10. way[maintenance][!highway];
  11. way[median][!highway];
  12. way[motorroad][!highway];
  13. node[ntd_id][!highway];
  14. way[sac_scale][!highway];
  15. way[sidewalk][!highway];
  16. way[step_count][!highway][man_made!=tower];
  17. way[tracktype][!highway];
  18. way[trail_visibility][!highway];
  19. way[trolley_wire][!highway];
  20. way[zip_left][!highway];
  21. way[zip_right][!highway];
  22. way[detail][!railway][route!=railway];
  23. way[eddy_current_brake][!railway][route!=railway];
  24. way[electrified][!railway][route!=railway][!highway];
  25. way[etcs][!railway][route!=railway];
  26. way[gauge][!railway][route!=railway];
  27. way[grade_of_track][!railway][route!=railway];
  28. way[kursbuchstrecke][!railway][route!=railway];
  29. way[lzb][!railway][route!=railway];
  30. way[old_railway_operator][!railway][route!=railway];
  31. way[operating_procedure][!railway][route!=railway];
  32. way[pzb][!railway][route!=railway];
  33. way[structure_gauge][!railway][route!=railway];
  34. way[tilting_technology][!railway][route!=railway];
  35. way[track_class][!railway][route!=railway];
  36. way[tracks][!railway][route!=railway];
  37. way[traffic_mode][!railway][route!=railway];
  38. way[workrules][!railway][route!=railway];
  39. way[stream][!waterway];
  40. way[length_unit][!waterway];
  41. way[canal][!waterway];
  42. way[have_riverbank][!waterway];
  43. node[border_type][!boundary];
  44. way[boder_type][!boundary];
  45. node["piste:difficulty"][!"piste:type"];
  46. way["piste:difficulty"][!"piste:type"];
  47. node[place][!name][place!=islet];
  48. way[place][!name][place!=islet];
  49. node["source:date"][!source];
  50. way["source:date"][!source];
  51. node["source:name"][!name];
  52. way["source:name"][!name];
  53. node["source:maxspeed:forward"][!"maxspeed:forward"][!maxspeed];
  54. way["source:maxspeed:forward"][!"maxspeed:forward"][!maxspeed];
  55. node["source:maxspeed:backward"][!"maxspeed:backward"][!maxspeed];
  56. way["source:maxspeed:backward"][!"maxspeed:backward"][!maxspeed];
  57. node["source:building"][!building];
  58. way["source:building"][!building];
  59. node["source:ref"][!ref];
  60. way["source:ref"][!ref];
  61. node["source:population"][!population];
  62. way["source:population"][!population];
  63. node["source:postal_code"][!postal_code];
  64. way["source:postal_code"][!postal_code];
  65. node["source:ele"][!ele];
  66. way["source:ele"][!ele];
  67. node["source:ref:INSEE"][!"ref:INSEE"];
  68. way["source:ref:INSEE"][!"ref:INSEE"];
  69. node["source:lit"][!lit];
  70. way["source:lit"][!lit];
  71. node["source:hgv"][!hgv];
  72. way["source:hgv"][!hgv];
  73. node["source:highway"][!highway];
  74. way["source:highway"][!highway];
  75. node["source:maxaxleload"][!maxaxleload];
  76. way["source:maxaxleload"][!maxaxleload];
  77. node["source:surface"][!surface];
  78. way["source:surface"][!surface];
  79. node["source:bridge"][!bridge];
  80. way["source:bridge"][!bridge];
  81. node["source:old_name"][!old_name];
  82. way["source:old_name"][!old_name];
  83. node["source:bicycle"][!bicycle];
  84. way["source:bicycle"][!bicycle];
  85. node["source:designation"][!designation];
  86. way["source:designation"][!designation];
  87. node["source:height"][!height];
  88. way["source:height"][!height];
  89. node["source:lanes"][!lanes];
  90. way["source:lanes"][!lanes];
  91. node["source:postcode"][!"addr:postcode"];
  92. way["source:postcode"][!"addr:postcode"];
  93. node["source:housenumber"][!"addr:housenumber"];
  94. way["source:housenumber"][!"addr:housenumber"];
  95. node["source:addr:postcode"][!"addr:postcode"];
  96. way["source:addr:postcode"][!"addr:postcode"];
  97. node["source:addr:housenumber"][!"addr:housenumber"];
  98. way["source:addr:housenumber"][!"addr:housenumber"];
  99. node[transformer][!power];
  100. way[transformer][!power];
  101. way[fence_type][barrier!=fence];
  102. node[recycling_type][amenity!=recycling];
  103. way[recycling_type][amenity!=recycling];
  104. node[information][tourism!=information];
  105. way[information][tourism!=information];
  106. node[board_type][information!=board];
  107. node[shelter_type][amenity!=shelter];
  108. way[shelter_type][amenity!=shelter];
  109. node[lamp_type][highway!=street_lamp];
  110. node[map_type][information!=map];
  111. node[site_type][historic!=archaeological_site];
  112. way[site_type][historic!=archaeological_site];
  113. node[artwork_type][tourism!=artwork][exhibit!=artwork];
  114. way[artwork_type][tourism!=artwork][exhibit!=artwork];
  115. node[castle_type][historic!=castle];
  116. way[castle_type][historic!=castle];
  117. way[cutline][man_made!=cutline];
  118. node[bunker_type][military!=bunker];
  119. way[bunker_type][military!=bunker];
  120. node["bridge:movable"][bridge!=movable][man_made!=bridge];
  121. way["bridge:movable"][bridge!=movable][man_made!=bridge];
  122. node[substation][power!=substation][pipeline!=substation];
  123. way[substation][power!=substation][pipeline!=substation];
  124. node[reservoir_type][landuse!=reservoir][water!=reservoir];
  125. way[reservoir_type][landuse!=reservoir][water!=reservoir];
  126. way[waterway=pressurised][tunnel!=flooded][man_made!=pipeline];
  127. way[boundary=administrative][!admin_level];
  128. relation[boundary=administrative][!admin_level];
  129. relation[route=bicycle][!network][type=route];
  130. relation[route=hiking][!network][type=route];
  131. relation[route=foot][!network][type=route];
  132. relation[route=horse][!network][type=route];
  133. relation[route=piste][!"piste:type"][type=route];
  134. relation[route=ski][!"piste:type"][type=route];
  135. relation[type=boundary][!name];
  136. node[tourism=information][!information];
  137. way[tourism=information][!information];
  138. node[leisure=pitch][!sport];
  139. way[leisure=pitch][!sport];
  140. node[aeroway=terminal][!building];
  141. way[aeroway=terminal][!building];
  142. node[power=generator][!"generator:source"];
  143. way[power=generator][!"generator:source"];
  144. node[amenity=social_facility][!social_facility];
  145. way[amenity=social_facility][!social_facility];
  146. node[amenity=place_of_worship][!religion];
  147. way[amenity=place_of_worship][!religion];
  148. way["bridge:structure"][!bridge][man_made!=bridge];
  149. node[segregated][!highway][railway!=crossing];
  150. way[segregated][!highway][railway!=crossing];
  151. way[usage=penstock][man_made!=pipeline];
  152. way[usage=penstock][waterway!=pressurised];
  153. node[amenity=recycling][recycling_type!=container][recycling_type!=centre];
  154. way[amenity=recycling][recycling_type!=container][recycling_type!=centre];
  155. way[oneway][!highway][!railway][!aerialway];
  156. node[snowplowing][!highway][!amenity][!leisure];
  157. way[snowplowing][!highway][!amenity][!leisure];
  158. node[internet_access=no]["internet_access:fee"];
  159. way[internet_access=no]["internet_access:fee"];
  160. node[power=transformer][voltage];
  161. node[transformer=distribution][voltage][power=pole];
  162. node[amenity=vending_machine][shop];
  163. way[amenity=vending_machine][shop];
  164. way[man_made=pipeline][tunnel=flooded];
  165. way[waterway=canal][tunnel=yes];
  166. way[highway=footway][bicycle=designated];
  167. node["addr:street"]["addr:place"];
  168. way["addr:street"]["addr:place"];
  169. way[waterway][bridge=yes][waterway!=weir];
  170. way[waterway=weir][bridge=yes][highway];
  171. way[highway][highway!=services][highway!=rest_area][!postal_code]["addr:postcode"];
  172. way[highway=footway][cycleway=lane];
  173. node[tunnel][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor];
  174. way[tunnel][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor];
  175. node[bridge][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=bridge][building!=bridge];
  176. way[bridge][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=bridge][building!=bridge];
  177. node[width][!highway][!railway][!waterway][!aeroway][!cycleway][!footway][!barrier][!man_made][!entrance][natural!=stone];
  178. way[highway][barrier];
  179. node[highway][waterway][waterway!=dam][waterway!=weir];
  180. way[highway][waterway][waterway!=dam][waterway!=weir];
  181. way[highway][natural][natural!=ridge];
  182. way[landuse][landuse!=retail][building];
  183. node[natural=water][leisure=swimming_pool];
  184. way[natural=water][leisure=swimming_pool];
  185. node[unisex=yes][female=yes][male!=yes][shop=hairdresser];
  186. way[unisex=yes][female=yes][male!=yes][shop=hairdresser];
  187. node[unisex=yes][male=yes][female!=yes][shop=hairdresser];
  188. way[unisex=yes][male=yes][female!=yes][shop=hairdresser];
  189. node[unisex=yes][female=yes][male=yes][shop=hairdresser];
  190. way[unisex=yes][female=yes][male=yes][shop=hairdresser];
  191. node[female=yes][male=yes][!unisex][shop=hairdresser];
  192. way[female=yes][male=yes][!unisex][shop=hairdresser];
  193. );
  194.  
  195. out body;
  196. >;
  197. out skel qt;
  198.  
  199.  
  200. // Info Level
  201. /*
  202. way["lanes:forward"][!"lanes:backward"][oneway!=yes][oneway!=-1];
  203. way["lanes:backward"][!"lanes:forward"][oneway!=yes][oneway!=-1];
  204. node[leaf_type][!leaf_cycle];
  205. way[leaf_type][!leaf_cycle];
  206. node[leaf_cycle][!leaf_type];
  207. way[leaf_cycle][!leaf_type];
  208. way[highway=track][!tracktype];
  209. way[power=cable][!location];
  210. node[power=transformer][!voltage:primary];
  211. node[power=transformer][!voltage:secondary];
  212. node[transformer=distribution][!voltage:primary][power=pole];
  213. node[transformer=distribution][!voltage:secondary][power=pole];
  214. way[power=line][!voltage];
  215. way[power=minor_line][!voltage];
  216. way[power=cable][!voltage];
  217. node[power=generator][!voltage]["generator:output:electricity"];
  218. way[power=generator][!voltage]["generator:output:electricity"];
  219. node[power=plant][!voltage]["plant:output:electricity"];
  220. way[power=plant][!voltage]["plant:output:electricity"];
  221. node[power=substation][!substation];
  222. way[power=substation][!substation];
  223. node[power=switch][!switch];
  224. way[power=switch][!switch];
  225. node[power=transformer][!transformer];
  226. way[power=transformer][!transformer];
  227. node[amenity=bank][!operator];
  228. way[amenity=bank][!operator];
  229. nodeamenity=cinema][!operator];
  230. wayamenity=cinema][!operator];
  231. node[amenity=fast_food][!operator];
  232. way[amenity=fast_food][!operator];
  233. node[amenity=fuel][!operator];
  234. way[amenity=fuel][!operator];
  235. node[mountain_pass=yes][!ele];
  236. way[mountain_pass=yes][!ele];
  237. node[natural=peak][!ele];
  238. way[natural=peak][!ele];
  239. node[amenity=parking][!parking];
  240. way[amenity=parking][!parking];
  241. node[amenity=parking_entrance][!parking];
  242. way[amenity=parking_entrance][!parking];
  243. node[amenity=place_of_worship][!denomination];
  244. way[amenity=place_of_worship][!denomination];
  245. way[highway=motorway][!oneway][junction!=roundabout];
  246. way[highway=motorway_link][!oneway][junction!=roundabout];
  247. way[highway=footway][oneway=no];
  248. node["building:levels"][!building][!"building:part"];
  249. way["building:levels"][!building][!"building:part"];
  250. way[usage][!railway][!waterway][route!=railway][man_made!=pipeline];
  251. way["maxspeed:forward"][maxspeed][!"maxspeed:backward"];
  252. way["maxspeed:backward"][maxspeed][!"maxspeed:forward"];
  253. relation[oneway][type!=route];
  254. way[golf=bunker][natural=beach];
  255. node[!name][amenity=place_of_worship];
  256. way[!name][amenity=place_of_worship];
  257. node[!name][amenity=pub];
  258. way[!name][amenity=pub];
  259. node[!name][amenity=restaurant];
  260. way[!name][amenity=restaurant];
  261. node[!name][amenity=school];
  262. way[!name][amenity=school];
  263. node[!name][amenity=university];
  264. way[!name][amenity=university];
  265. node[!name][amenity=hospital];
  266. way[!name][amenity=hospital];
  267. node[!name][amenity=library];
  268. way[!name][amenity=library];
  269. node[!name][amenity=theatre];
  270. way[!name][amenity=theatre];
  271. node[!name][amenity=courthouse];
  272. way[!name][amenity=courthouse];
  273. node[!name][amenity=bank];
  274. way[!name][amenity=bank];
  275. node[!name][amenity=cinema];
  276. way[!name][amenity=cinema];
  277. node[!name][amenity=pharmacy];
  278. way[!name][amenity=pharmacy];
  279. node[!name][amenity=cafe];
  280. way[!name][amenity=cafe];
  281. node[!name][amenity=fast_food];
  282. way[!name][amenity=fast_food];
  283. node[!name][amenity=fuel];
  284. way[!name][amenity=fuel];
  285. node[amenity][amenity !~ "(restaurant|cafe|fast_food)"][!name][noname!=yes]);
  286.  
  287.  
  288. );
  289.  
  290. out body;
  291. >;
  292. out skel qt;
  293.  
  294. relation[type=multipolygon][building]->.mp;
  295.  
  296. (
  297. way(r.mp)["addr:housenumber"][!building][!"building:part"][!"demolished:building"][!note][!amenity][!leisure][!landuse][!man_made][!tourism][!barrier];
  298. )->.partofmp;
  299.  
  300. way["addr:housenumber"][!building][!"building:part"][!"demolished:building"][!note][!amenity][!leisure][!landuse][!man_made][!tourism][!barrier]->.ways;
  301.  
  302. (.ways; - .partofmp;);
  303.  
  304.  
  305. out body;
  306. >;
  307. out skel qt;
  308.  
  309. */
  310.  
  311.  
  312. (
  313. node["source:addr"][~"^addr:.*$"~"."];
  314. way["source:addr"][~"^addr:.*$"~"."];
  315. )->.with;
  316.  
  317. (
  318. node["source:addr"];
  319. way["source:addr"];
  320. )->.all;
  321.  
  322. (.all; - .with;);
  323.  
  324. out body;
  325. >;
  326. out skel qt;
  327.  
  328. (
  329. node["source:maxspeed"][~"^maxspeed"~"."];
  330. way["source:maxspeed"][~"^maxspeed"~"."];
  331. )->.with;
  332.  
  333. (
  334. node["source:maxspeed"];
  335. way["source:maxspeed"];
  336. )->.all;
  337.  
  338. (.all; - .with;);
  339.  
  340. out body;
  341. >;
  342. out skel qt;
  343.  
  344. (
  345. node[parking][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
  346. way[parking][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
  347. );
  348.  
  349. out body;
  350. >;
  351. out skel qt;
  352.  
  353.  
  354. (
  355. node[smoothness][!highway][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
  356. way[smoothness][!highway][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
  357. );
  358.  
  359. out body;
  360. >;
  361. out skel qt;
  362.  
  363. (
  364. node[intermittent][!waterway][natural!~"^water|spring$"][landuse!~"^basin|reservior$"][ford!=yes];
  365. way[intermittent][!waterway][natural!~"^water|spring$"][landuse!~"^basin|reservior$"][ford!=yes];
  366. );
  367.  
  368.  
  369. out body;
  370. >;
  371. out skel qt;
  372.  
  373. (
  374. node[boat][!waterway][natural!=water][landuse!~"^basin|reservoir$"][ford!=yes];
  375. way[boat][!waterway][natural!=water][landuse!~"^basin|reservoir$"][ford!=yes];
  376. );
  377.  
  378. out body;
  379. >;
  380. out skel qt;
  381.  
  382. (
  383. way[incline][!highway][!railway][aeroway!~"^runway|taxiway$"];
  384. );
  385.  
  386.  
  387. out body;
  388. >;
  389. out skel qt;
  390.  
  391. (
  392. way[toll][!highway][!barrier][route!~"^ferry|road$"];
  393. relation[toll][!highway][!barrier][route!~"^ferry|road$"];
  394. );
  395.  
  396. out body;
  397. >;
  398. out skel qt;
  399.  
  400. (
  401. way[oneway=yes][~":backward.*$"~"."][!"traffic_sign:backward"]["bicycle:backward"=use_sidepath];
  402. way[oneway=yes][~":forward.*$"~"."][!"traffic_sign:forward"]["bicycle:forward"!=use_sidepath];
  403. way[oneway=-1][~":backward.*$"~"."][!"traffic_sign:backward"]["bicycle:backward"!=use_sidepath];
  404. way[oneway=-1][~":forward.*$"~"."][!"traffic_sign:forward"]["bicycle:backward"!=use_sidepath];
  405. );
  406.  
  407. out body;
  408. >;
  409. out skel qt;
  410.  
  411.  
  412. (
  413. node[access](if: count_tags() == 1);
  414. way[access](if: count_tags() == 1);
  415. relation[access](if: count_tags() == 1);
  416. node[name](if: count_tags() == 1);
  417. way[name](if: count_tags() == 1);
  418. relation[name](if: count_tags() == 1);
  419. node[ref](if: count_tags() == 1);
  420. way[ref](if: count_tags() == 1);
  421. relation[ref](if: count_tags() == 1);
  422. node[lit](if: count_tags() == 1);
  423. way[lit](if: count_tags() == 1);
  424. relation[lit](if: count_tags() == 1);
  425. node[name]["area"](if: count_tags() == 2);
  426. way[name]["area"](if: count_tags() == 2);
  427. relation[name]["area"](if: count_tags() == 2);
  428. node[name][ref](if: count_tags() == 2);
  429. way[name][ref](if: count_tags() == 2);
  430. relation[name][ref](if: count_tags() == 2);
  431. node[tourism=attraction](if: count_tags() == 1);
  432. way[tourism=attraction](if: count_tags() == 1);
  433. relation[tourism=attraction](if: count_tags() == 1);
  434. node[name][tourism=attraction](if: count_tags() == 2);
  435. way[name][tourism=attraction](if: count_tags() == 2);
  436. relation[name][tourism=attraction](if: count_tags() == 2);
  437. );
  438.  
  439. out body;
  440. >;
  441. out skel qt;
  442.  
  443. (
  444. node[place][place!=farm][~"^(addr:housenumber|addr:housename|addr:flats|addr:conscriptionnumber|addr:street|addr:place|addr:city|addr:country|addr:full|addr:hamlet|addr:suburb|addr:subdistrict|addr:district|addr:province|addr:state|addr:interpolation|addr:interpolation|addr:inclusion)?$"~"."];
  445. way[place][place!=farm][~"^(addr:housenumber|addr:housename|addr:flats|addr:conscriptionnumber|addr:street|addr:place|addr:city|addr:country|addr:full|addr:hamlet|addr:suburb|addr:subdistrict|addr:district|addr:province|addr:state|addr:interpolation|addr:interpolation|addr:inclusion)?$"~"."];
  446. );
  447.  
  448. out body;
  449. >;
  450. out skel qt;
  451.  
  452. (
  453. node[boundary][~"^addr:.*$"~"."];
  454. way[boundary][~"^addr:.*$"~"."];
  455. node[highway][~"^addr:.*$"~"."][highway!=services][highway!=rest_area][!"addr:postcode"];
  456. way[highway][~"^addr:.*$"~"."][highway!=services][highway!=rest_area][!"addr:postcode"];
  457. );
  458.  
  459. out body;
  460. >;
  461. out skel qt;
  462.  
  463.  
  464. (
  465. node[psv][!highway][!railway][!waterway][amenity !~ "parking"];
  466. way[psv][!highway][!railway][!waterway][amenity !~ "parking"];
  467. );
  468.  
  469. out body;
  470. >;
  471. out skel qt;
  472.  
  473. (
  474. node[sport][sport!=skiing][!building][!club][tourism != hotel][highway != raceway][!leisure][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];
  475. way[sport][sport!=skiing][!building][!club][tourism != hotel][highway != raceway][!leisure][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];
  476. );
  477.  
  478. out body;
  479. >;
  480. out skel qt;
  481.  
  482.  
  483. (
  484. node[~"_name.*$"~"."][!name][!old_name][!loc_name][!uic_name][!artist_name][!lock_name][!"osak:municipality_name"][!"osak:street_name"][noname!=yes];
  485. way[~"_name.*$"~"."][!name][!old_name][!loc_name][!uic_name][!artist_name][!lock_name][!"osak:municipality_name"][!"osak:street_name"][noname!=yes];
  486. );
  487.  
  488. out body;
  489. >;
  490. out skel qt;
  491.  
  492. (
  493. way[destination][oneway = yes][junction!=roundabout][highway];
  494. way[destination][oneway = 1][junction!=roundabout][highway];
  495. );
  496.  
  497. out body;
  498. >;
  499. out skel qt;
  500.  
  501. (
  502. way[layer][layer ~ "-"][bridge][bridge!=no][location!=underground][indoor!=yes][!tunnel];
  503. way[layer][layer ~ "(^1$|^2$|^3$|^4$|^5$)"][tunnel][tunnel!=no][location!=overground][indoor!=yes][!bridge];
  504. );
  505.  
  506.  
  507. out body;
  508. >;
  509. out skel qt;
RAW Paste Data