Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //combinations query-based on JOSM combinations.mapcss
- //Features that are missing tags, or features that have tag combinations that do not make sense
- [out:json][bbox:{{bbox}}];
- // Tag Combination Warnings from combinations.mapcss JOSM validator
- (
- way[junction][!highway][junction!=yes];
- way[lanes][!highway][leisure!=track][leisure!=swimming_pool];
- way[living_street][!highway];
- way[maintenance][!highway];
- way[median][!highway];
- way[motorroad][!highway];
- node[ntd_id][!highway];
- way[sac_scale][!highway];
- way[sidewalk][!highway];
- way[step_count][!highway][man_made!=tower];
- way[tracktype][!highway];
- way[trail_visibility][!highway];
- way[trolley_wire][!highway];
- way[zip_left][!highway];
- way[zip_right][!highway];
- way[detail][!railway][route!=railway];
- way[eddy_current_brake][!railway][route!=railway];
- way[electrified][!railway][route!=railway][!highway];
- way[etcs][!railway][route!=railway];
- way[gauge][!railway][route!=railway];
- way[grade_of_track][!railway][route!=railway];
- way[kursbuchstrecke][!railway][route!=railway];
- way[lzb][!railway][route!=railway];
- way[old_railway_operator][!railway][route!=railway];
- way[operating_procedure][!railway][route!=railway];
- way[pzb][!railway][route!=railway];
- way[structure_gauge][!railway][route!=railway];
- way[tilting_technology][!railway][route!=railway];
- way[track_class][!railway][route!=railway];
- way[tracks][!railway][route!=railway];
- way[traffic_mode][!railway][route!=railway];
- way[workrules][!railway][route!=railway];
- way[stream][!waterway];
- way[length_unit][!waterway];
- way[canal][!waterway];
- way[have_riverbank][!waterway];
- node[border_type][!boundary];
- way[boder_type][!boundary];
- node["piste:difficulty"][!"piste:type"];
- way["piste:difficulty"][!"piste:type"];
- node[place][!name][place!=islet];
- way[place][!name][place!=islet];
- node["source:date"][!source];
- way["source:date"][!source];
- node["source:name"][!name];
- way["source:name"][!name];
- node["source:maxspeed:forward"][!"maxspeed:forward"][!maxspeed];
- way["source:maxspeed:forward"][!"maxspeed:forward"][!maxspeed];
- node["source:maxspeed:backward"][!"maxspeed:backward"][!maxspeed];
- way["source:maxspeed:backward"][!"maxspeed:backward"][!maxspeed];
- node["source:building"][!building];
- way["source:building"][!building];
- node["source:ref"][!ref];
- way["source:ref"][!ref];
- node["source:population"][!population];
- way["source:population"][!population];
- node["source:postal_code"][!postal_code];
- way["source:postal_code"][!postal_code];
- node["source:ele"][!ele];
- way["source:ele"][!ele];
- node["source:ref:INSEE"][!"ref:INSEE"];
- way["source:ref:INSEE"][!"ref:INSEE"];
- node["source:lit"][!lit];
- way["source:lit"][!lit];
- node["source:hgv"][!hgv];
- way["source:hgv"][!hgv];
- node["source:highway"][!highway];
- way["source:highway"][!highway];
- node["source:maxaxleload"][!maxaxleload];
- way["source:maxaxleload"][!maxaxleload];
- node["source:surface"][!surface];
- way["source:surface"][!surface];
- node["source:bridge"][!bridge];
- way["source:bridge"][!bridge];
- node["source:old_name"][!old_name];
- way["source:old_name"][!old_name];
- node["source:bicycle"][!bicycle];
- way["source:bicycle"][!bicycle];
- node["source:designation"][!designation];
- way["source:designation"][!designation];
- node["source:height"][!height];
- way["source:height"][!height];
- node["source:lanes"][!lanes];
- way["source:lanes"][!lanes];
- node["source:postcode"][!"addr:postcode"];
- way["source:postcode"][!"addr:postcode"];
- node["source:housenumber"][!"addr:housenumber"];
- way["source:housenumber"][!"addr:housenumber"];
- node["source:addr:postcode"][!"addr:postcode"];
- way["source:addr:postcode"][!"addr:postcode"];
- node["source:addr:housenumber"][!"addr:housenumber"];
- way["source:addr:housenumber"][!"addr:housenumber"];
- node[transformer][!power];
- way[transformer][!power];
- way[fence_type][barrier!=fence];
- node[recycling_type][amenity!=recycling];
- way[recycling_type][amenity!=recycling];
- node[information][tourism!=information];
- way[information][tourism!=information];
- node[board_type][information!=board];
- node[shelter_type][amenity!=shelter];
- way[shelter_type][amenity!=shelter];
- node[lamp_type][highway!=street_lamp];
- node[map_type][information!=map];
- node[site_type][historic!=archaeological_site];
- way[site_type][historic!=archaeological_site];
- node[artwork_type][tourism!=artwork][exhibit!=artwork];
- way[artwork_type][tourism!=artwork][exhibit!=artwork];
- node[castle_type][historic!=castle];
- way[castle_type][historic!=castle];
- way[cutline][man_made!=cutline];
- node[bunker_type][military!=bunker];
- way[bunker_type][military!=bunker];
- node["bridge:movable"][bridge!=movable][man_made!=bridge];
- way["bridge:movable"][bridge!=movable][man_made!=bridge];
- node[substation][power!=substation][pipeline!=substation];
- way[substation][power!=substation][pipeline!=substation];
- node[reservoir_type][landuse!=reservoir][water!=reservoir];
- way[reservoir_type][landuse!=reservoir][water!=reservoir];
- way[waterway=pressurised][tunnel!=flooded][man_made!=pipeline];
- way[boundary=administrative][!admin_level];
- relation[boundary=administrative][!admin_level];
- relation[route=bicycle][!network][type=route];
- relation[route=hiking][!network][type=route];
- relation[route=foot][!network][type=route];
- relation[route=horse][!network][type=route];
- relation[route=piste][!"piste:type"][type=route];
- relation[route=ski][!"piste:type"][type=route];
- relation[type=boundary][!name];
- node[tourism=information][!information];
- way[tourism=information][!information];
- node[leisure=pitch][!sport];
- way[leisure=pitch][!sport];
- node[aeroway=terminal][!building];
- way[aeroway=terminal][!building];
- node[power=generator][!"generator:source"];
- way[power=generator][!"generator:source"];
- node[amenity=social_facility][!social_facility];
- way[amenity=social_facility][!social_facility];
- node[amenity=place_of_worship][!religion];
- way[amenity=place_of_worship][!religion];
- way["bridge:structure"][!bridge][man_made!=bridge];
- node[segregated][!highway][railway!=crossing];
- way[segregated][!highway][railway!=crossing];
- way[usage=penstock][man_made!=pipeline];
- way[usage=penstock][waterway!=pressurised];
- node[amenity=recycling][recycling_type!=container][recycling_type!=centre];
- way[amenity=recycling][recycling_type!=container][recycling_type!=centre];
- way[oneway][!highway][!railway][!aerialway];
- node[snowplowing][!highway][!amenity][!leisure];
- way[snowplowing][!highway][!amenity][!leisure];
- node[internet_access=no]["internet_access:fee"];
- way[internet_access=no]["internet_access:fee"];
- node[power=transformer][voltage];
- node[transformer=distribution][voltage][power=pole];
- node[amenity=vending_machine][shop];
- way[amenity=vending_machine][shop];
- way[man_made=pipeline][tunnel=flooded];
- way[waterway=canal][tunnel=yes];
- way[highway=footway][bicycle=designated];
- node["addr:street"]["addr:place"];
- way["addr:street"]["addr:place"];
- way[waterway][bridge=yes][waterway!=weir];
- way[waterway=weir][bridge=yes][highway];
- way[highway][highway!=services][highway!=rest_area][!postal_code]["addr:postcode"];
- way[highway=footway][cycleway=lane];
- node[tunnel][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor];
- way[tunnel][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor];
- node[bridge][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=bridge][building!=bridge];
- way[bridge][!highway][!railway][!waterway][!"piste:type"][public_transport!=platform][route!=ferry][man_made!=pipeline][man_made!=goods_conveyor][man_made!=bridge][building!=bridge];
- node[width][!highway][!railway][!waterway][!aeroway][!cycleway][!footway][!barrier][!man_made][!entrance][natural!=stone];
- way[highway][barrier];
- node[highway][waterway][waterway!=dam][waterway!=weir];
- way[highway][waterway][waterway!=dam][waterway!=weir];
- way[highway][natural][natural!=ridge];
- way[landuse][landuse!=retail][building];
- node[natural=water][leisure=swimming_pool];
- way[natural=water][leisure=swimming_pool];
- node[unisex=yes][female=yes][male!=yes][shop=hairdresser];
- way[unisex=yes][female=yes][male!=yes][shop=hairdresser];
- node[unisex=yes][male=yes][female!=yes][shop=hairdresser];
- way[unisex=yes][male=yes][female!=yes][shop=hairdresser];
- node[unisex=yes][female=yes][male=yes][shop=hairdresser];
- way[unisex=yes][female=yes][male=yes][shop=hairdresser];
- node[female=yes][male=yes][!unisex][shop=hairdresser];
- way[female=yes][male=yes][!unisex][shop=hairdresser];
- );
- out body;
- >;
- out skel qt;
- // Info Level
- /*
- way["lanes:forward"][!"lanes:backward"][oneway!=yes][oneway!=-1];
- way["lanes:backward"][!"lanes:forward"][oneway!=yes][oneway!=-1];
- node[leaf_type][!leaf_cycle];
- way[leaf_type][!leaf_cycle];
- node[leaf_cycle][!leaf_type];
- way[leaf_cycle][!leaf_type];
- way[highway=track][!tracktype];
- way[power=cable][!location];
- node[power=transformer][!voltage:primary];
- node[power=transformer][!voltage:secondary];
- node[transformer=distribution][!voltage:primary][power=pole];
- node[transformer=distribution][!voltage:secondary][power=pole];
- way[power=line][!voltage];
- way[power=minor_line][!voltage];
- way[power=cable][!voltage];
- node[power=generator][!voltage]["generator:output:electricity"];
- way[power=generator][!voltage]["generator:output:electricity"];
- node[power=plant][!voltage]["plant:output:electricity"];
- way[power=plant][!voltage]["plant:output:electricity"];
- node[power=substation][!substation];
- way[power=substation][!substation];
- node[power=switch][!switch];
- way[power=switch][!switch];
- node[power=transformer][!transformer];
- way[power=transformer][!transformer];
- node[amenity=bank][!operator];
- way[amenity=bank][!operator];
- nodeamenity=cinema][!operator];
- wayamenity=cinema][!operator];
- node[amenity=fast_food][!operator];
- way[amenity=fast_food][!operator];
- node[amenity=fuel][!operator];
- way[amenity=fuel][!operator];
- node[mountain_pass=yes][!ele];
- way[mountain_pass=yes][!ele];
- node[natural=peak][!ele];
- way[natural=peak][!ele];
- node[amenity=parking][!parking];
- way[amenity=parking][!parking];
- node[amenity=parking_entrance][!parking];
- way[amenity=parking_entrance][!parking];
- node[amenity=place_of_worship][!denomination];
- way[amenity=place_of_worship][!denomination];
- way[highway=motorway][!oneway][junction!=roundabout];
- way[highway=motorway_link][!oneway][junction!=roundabout];
- way[highway=footway][oneway=no];
- node["building:levels"][!building][!"building:part"];
- way["building:levels"][!building][!"building:part"];
- way[usage][!railway][!waterway][route!=railway][man_made!=pipeline];
- way["maxspeed:forward"][maxspeed][!"maxspeed:backward"];
- way["maxspeed:backward"][maxspeed][!"maxspeed:forward"];
- relation[oneway][type!=route];
- way[golf=bunker][natural=beach];
- node[!name][amenity=place_of_worship];
- way[!name][amenity=place_of_worship];
- node[!name][amenity=pub];
- way[!name][amenity=pub];
- node[!name][amenity=restaurant];
- way[!name][amenity=restaurant];
- node[!name][amenity=school];
- way[!name][amenity=school];
- node[!name][amenity=university];
- way[!name][amenity=university];
- node[!name][amenity=hospital];
- way[!name][amenity=hospital];
- node[!name][amenity=library];
- way[!name][amenity=library];
- node[!name][amenity=theatre];
- way[!name][amenity=theatre];
- node[!name][amenity=courthouse];
- way[!name][amenity=courthouse];
- node[!name][amenity=bank];
- way[!name][amenity=bank];
- node[!name][amenity=cinema];
- way[!name][amenity=cinema];
- node[!name][amenity=pharmacy];
- way[!name][amenity=pharmacy];
- node[!name][amenity=cafe];
- way[!name][amenity=cafe];
- node[!name][amenity=fast_food];
- way[!name][amenity=fast_food];
- node[!name][amenity=fuel];
- way[!name][amenity=fuel];
- node[amenity][amenity !~ "(restaurant|cafe|fast_food)"][!name][noname!=yes]);
- );
- out body;
- >;
- out skel qt;
- relation[type=multipolygon][building]->.mp;
- (
- way(r.mp)["addr:housenumber"][!building][!"building:part"][!"demolished:building"][!note][!amenity][!leisure][!landuse][!man_made][!tourism][!barrier];
- )->.partofmp;
- way["addr:housenumber"][!building][!"building:part"][!"demolished:building"][!note][!amenity][!leisure][!landuse][!man_made][!tourism][!barrier]->.ways;
- (.ways; - .partofmp;);
- out body;
- >;
- out skel qt;
- */
- (
- node["source:addr"][~"^addr:.*$"~"."];
- way["source:addr"][~"^addr:.*$"~"."];
- )->.with;
- (
- node["source:addr"];
- way["source:addr"];
- )->.all;
- (.all; - .with;);
- out body;
- >;
- out skel qt;
- (
- node["source:maxspeed"][~"^maxspeed"~"."];
- way["source:maxspeed"][~"^maxspeed"~"."];
- )->.with;
- (
- node["source:maxspeed"];
- way["source:maxspeed"];
- )->.all;
- (.all; - .with;);
- out body;
- >;
- out skel qt;
- (
- node[parking][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
- way[parking][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
- );
- out body;
- >;
- out skel qt;
- (
- node[smoothness][!highway][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
- way[smoothness][!highway][amenity!~"^parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking$"];
- );
- out body;
- >;
- out skel qt;
- (
- node[intermittent][!waterway][natural!~"^water|spring$"][landuse!~"^basin|reservior$"][ford!=yes];
- way[intermittent][!waterway][natural!~"^water|spring$"][landuse!~"^basin|reservior$"][ford!=yes];
- );
- out body;
- >;
- out skel qt;
- (
- node[boat][!waterway][natural!=water][landuse!~"^basin|reservoir$"][ford!=yes];
- way[boat][!waterway][natural!=water][landuse!~"^basin|reservoir$"][ford!=yes];
- );
- out body;
- >;
- out skel qt;
- (
- way[incline][!highway][!railway][aeroway!~"^runway|taxiway$"];
- );
- out body;
- >;
- out skel qt;
- (
- way[toll][!highway][!barrier][route!~"^ferry|road$"];
- relation[toll][!highway][!barrier][route!~"^ferry|road$"];
- );
- out body;
- >;
- out skel qt;
- (
- way[oneway=yes][~":backward.*$"~"."][!"traffic_sign:backward"]["bicycle:backward"=use_sidepath];
- way[oneway=yes][~":forward.*$"~"."][!"traffic_sign:forward"]["bicycle:forward"!=use_sidepath];
- way[oneway=-1][~":backward.*$"~"."][!"traffic_sign:backward"]["bicycle:backward"!=use_sidepath];
- way[oneway=-1][~":forward.*$"~"."][!"traffic_sign:forward"]["bicycle:backward"!=use_sidepath];
- );
- out body;
- >;
- out skel qt;
- (
- node[access](if: count_tags() == 1);
- way[access](if: count_tags() == 1);
- relation[access](if: count_tags() == 1);
- node[name](if: count_tags() == 1);
- way[name](if: count_tags() == 1);
- relation[name](if: count_tags() == 1);
- node[ref](if: count_tags() == 1);
- way[ref](if: count_tags() == 1);
- relation[ref](if: count_tags() == 1);
- node[lit](if: count_tags() == 1);
- way[lit](if: count_tags() == 1);
- relation[lit](if: count_tags() == 1);
- node[name]["area"](if: count_tags() == 2);
- way[name]["area"](if: count_tags() == 2);
- relation[name]["area"](if: count_tags() == 2);
- node[name][ref](if: count_tags() == 2);
- way[name][ref](if: count_tags() == 2);
- relation[name][ref](if: count_tags() == 2);
- node[tourism=attraction](if: count_tags() == 1);
- way[tourism=attraction](if: count_tags() == 1);
- relation[tourism=attraction](if: count_tags() == 1);
- node[name][tourism=attraction](if: count_tags() == 2);
- way[name][tourism=attraction](if: count_tags() == 2);
- relation[name][tourism=attraction](if: count_tags() == 2);
- );
- out body;
- >;
- out skel qt;
- (
- 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)?$"~"."];
- 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)?$"~"."];
- );
- out body;
- >;
- out skel qt;
- (
- node[boundary][~"^addr:.*$"~"."];
- way[boundary][~"^addr:.*$"~"."];
- node[highway][~"^addr:.*$"~"."][highway!=services][highway!=rest_area][!"addr:postcode"];
- way[highway][~"^addr:.*$"~"."][highway!=services][highway!=rest_area][!"addr:postcode"];
- );
- out body;
- >;
- out skel qt;
- (
- node[psv][!highway][!railway][!waterway][amenity !~ "parking"];
- way[psv][!highway][!railway][!waterway][amenity !~ "parking"];
- );
- out body;
- >;
- out skel qt;
- (
- 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];
- 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];
- );
- out body;
- >;
- out skel qt;
- (
- node[~"_name.*$"~"."][!name][!old_name][!loc_name][!uic_name][!artist_name][!lock_name][!"osak:municipality_name"][!"osak:street_name"][noname!=yes];
- way[~"_name.*$"~"."][!name][!old_name][!loc_name][!uic_name][!artist_name][!lock_name][!"osak:municipality_name"][!"osak:street_name"][noname!=yes];
- );
- out body;
- >;
- out skel qt;
- (
- way[destination][oneway = yes][junction!=roundabout][highway];
- way[destination][oneway = 1][junction!=roundabout][highway];
- );
- out body;
- >;
- out skel qt;
- (
- way[layer][layer ~ "-"][bridge][bridge!=no][location!=underground][indoor!=yes][!tunnel];
- way[layer][layer ~ "(^1$|^2$|^3$|^4$|^5$)"][tunnel][tunnel!=no][location!=overground][indoor!=yes][!bridge];
- );
- out body;
- >;
- out skel qt;
Add Comment
Please, Sign In to add comment