Requete OSM selon nomenclature prédéfinie
On cherche à obtenir l'ensemble des ponts OSM qui correspondent à ces catégories :
-- C : Restaurations
('C', 'amenity', 'bar'), ('C', 'amenity', 'biergarten'), ('C', 'amenity', 'cafe'), ('C', 'amenity', 'fast_food'),
('C', 'amenity', 'food_court'), ('C', 'amenity', 'ice_cream'), ('C', 'amenity', 'pub'), ('C', 'amenity', 'restaurant'),
-- E : Equipements Publics
('E', 'amenity', 'college'), ('E', 'amenity', 'dancing_school'), ('E', 'amenity', 'driving_school'), ('E', 'amenity', 'first_aid_school'),
('E', 'amenity', 'kindergarten'), ('E', 'amenity', 'language_school'), ('E', 'amenity', 'library'), ('E', 'amenity', 'surf_school'),
('E', 'amenity', 'toy_library'), ('E', 'amenity', 'research_institute'), ('E', 'amenity', 'training'), ('E', 'amenity', 'music_school'),
('E', 'amenity', 'school'), ('E', 'amenity', 'traffic_park'), ('E', 'amenity', 'university'),
-- F : Services financiers
('F', 'amenity', 'atm'), ('F', 'amenity', 'bank'),
-- S : Santé
('S', 'amenity', 'clinic'), ('S', 'amenity', 'dentist'), ('S', 'amenity', 'doctors'), ('S', 'amenity', 'hospital'), ('S', 'amenity', 'pharmacy'),
-- L : Cultures et Loisirs
('L', 'amenity', 'casino'), ('L', 'amenity', 'cinema'), ('L', 'amenity', 'conference_centre'), ('L', 'amenity', 'events_venue'),
('L', 'amenity', 'exhibition_centre'), ('L', 'amenity', 'gambling'), ('L', 'amenity', 'music_venue'), ('L', 'amenity', 'nightclub'),
('L', 'amenity', 'planetarium'), ('L', 'amenity', 'stage'), ('L', 'amenity', 'theatre'),
-- I : Services Publics (Note: inclut building pour horloges, gares, etc. selon votre liste)
('I', 'amenity', 'courthouse'), ('I', 'amenity', 'police'), ('I', 'amenity', 'post_office'), ('I', 'amenity', 'townhall'),
('I', 'building', 'clock_tower'), ('I', 'building', 'college'), ('I', 'building', 'government'), ('I', 'building', 'museum'), ('I', 'building', 'train_station'),
-- X : Points Urbains Structurants
('X', 'amenity', 'internet_cafe'), ('X', 'amenity', 'marketplace'), ('X', 'amenity', 'place_of_worship'),
-- T : Bâtiments tertiaires
('T', 'building', 'commercial'), ('T', 'building', 'kiosk'), ('T', 'building', 'office'), ('T', 'building', 'retail'), ('T', 'building', 'supermarket'),
-- M : Magasins (L'intégralité de votre liste Food, Mode, Beauté, Culture, Hobbies)
('M', 'shop', 'alcohol'), ('M', 'shop', 'bakery'), ('M', 'shop', 'beverages'), ('M', 'shop', 'brewing_supplies'), ('M', 'shop', 'butcher'),
('M', 'shop', 'cheese'), ('M', 'shop', 'chocolate'), ('M', 'shop', 'coffee'), ('M', 'shop', 'confectionery'), ('M', 'shop', 'convenience'),
('M', 'shop', 'dairy'), ('M', 'shop', 'deli'), ('M', 'shop', 'farm'), ('M', 'shop', 'food'), ('M', 'shop', 'frozen_food'),
('M', 'shop', 'greengrocer'), ('M', 'shop', 'health_food'), ('M', 'shop', 'ice_cream'), ('M', 'shop', 'nuts'), ('M', 'shop', 'pasta'),
('M', 'shop', 'pastry'), ('M', 'shop', 'seafood'), ('M', 'shop', 'spices'), ('M', 'shop', 'tea'), ('M', 'shop', 'tortilla'),
('M', 'shop', 'water'), ('M', 'shop', 'wine'), ('M', 'shop', 'department_store'), ('M', 'shop', 'general'), ('M', 'shop', 'kiosk'),
('M', 'shop', 'mall'), ('M', 'shop', 'supermarket'), ('M', 'shop', 'baby_goods'), ('M', 'shop', 'bag'), ('M', 'shop', 'boutique'),
('M', 'shop', 'clothes'), ('M', 'shop', 'fabric'), ('M', 'shop', 'fashion'), ('M', 'shop', 'fashion_accessories'), ('M', 'shop', 'jewelry'),
('M', 'shop', 'leather'), ('M', 'shop', 'sewing'), ('M', 'shop', 'shoes'), ('M', 'shop', 'shoe_repair'), ('M', 'shop', 'tailor'),
('M', 'shop', 'watches'), ('M', 'shop', 'wool'), ('M', 'shop', 'charity'), ('M', 'shop', 'second_hand'), ('M', 'shop', 'variety_store'),
('M', 'shop', 'beauty'), ('M', 'shop', 'chemist'), ('M', 'shop', 'cosmetics'), ('M', 'shop', 'erotic'), ('M', 'shop', 'hairdresser'),
('M', 'shop', 'hairdresser_supply'), ('M', 'shop', 'hearing_aids'), ('M', 'shop', 'herbalist'), ('M', 'shop', 'massage'), ('M', 'shop', 'medical_supply'),
('M', 'shop', 'nutrition_supplements'), ('M', 'shop', 'optician'), ('M', 'shop', 'perfumery'), ('M', 'shop', 'piercing'), ('M', 'shop', 'tattoo'),
('M', 'shop', 'florist'), ('M', 'shop', 'hardware'), ('M', 'shop', 'houseware'), ('M', 'shop', 'locksmith'), ('M', 'shop', 'antiques'),
('M', 'shop', 'candles'), ('M', 'shop', 'carpet'), ('M', 'shop', 'curtain'), ('M', 'shop', 'furniture'), ('M', 'shop', 'household_linen'),
('M', 'shop', 'interior_decoration'), ('M', 'shop', 'lighting'), ('M', 'shop', 'computer'), ('M', 'shop', 'electronics'), ('M', 'shop', 'hifi'),
('M', 'shop', 'mobile_phone'), ('M', 'shop', 'printer_ink'), ('M', 'shop', 'vacuum_cleaner'), ('M', 'shop', 'art'), ('M', 'shop', 'camera'),
('M', 'shop', 'collector'), ('M', 'shop', 'craft'), ('M', 'shop', 'frame'), ('M', 'shop', 'games'), ('M', 'shop', 'model'),
('M', 'shop', 'music'), ('M', 'shop', 'musical_instrument'), ('M', 'shop', 'photo'), ('M', 'shop', 'trophy'), ('M', 'shop', 'video'),
('M', 'shop', 'video_games'), ('M', 'shop', 'anime'), ('M', 'shop', 'books'), ('M', 'shop', 'gift'), ('M', 'shop', 'lottery'),
('M', 'shop', 'newsagent'), ('M', 'shop', 'stationery'), ('M', 'shop', 'ticket'), ('M', 'shop', 'cannabis'), ('M', 'shop', 'copyshop'),
('M', 'shop', 'dry_cleaning'), ('M', 'shop', 'e-cigarette'), ('M', 'shop', 'laundry'), ('M', 'shop', 'outpost'), ('M', 'shop', 'party'),
('M', 'shop', 'pet'), ('M', 'shop', 'pet_grooming'), ('M', 'shop', 'pyrotechnics'), ('M', 'shop', 'religion'), ('M', 'shop', 'tobacco'),
('M', 'shop', 'toys'), ('M', 'shop', 'travel_agency'), ('M', 'shop', 'weapons');
Pour cela on a besoin de l'extension QuickOSM et plus précisément de la rubrique requête de cette extension :
Ensuite dans cet onglet copiez collez ce code en pensant à changer ligne 3 $commune par $Le nom de votre commune ( Par exemple : $La Ciotat). :
[out:json][timeout:120];
// 1. Définition de la zone de recherche
{{geocodeArea:$commune}}->.searchArea;
(
// Catégories C, E, F, S, L, I, X (Amenity)
node["amenity"~"bar|biergarten|cafe|fast_food|food_court|ice_cream|pub|restaurant|college|dancing_school|driving_school|first_aid_school|kindergarten|language_school|library|surf_school|toy_library|research_institute|training|music_school|school|traffic_park|university|atm|bank|clinic|dentist|doctors|hospital|pharmacy|casino|cinema|conference_centre|events_venue|exhibition_centre|gambling|music_venue|nightclub|planetarium|stage|theatre|courthouse|police|post_office|townhall|internet_cafe|marketplace|place_of_worship"](area.searchArea);
way["amenity"~"bar|biergarten|cafe|fast_food|food_court|ice_cream|pub|restaurant|college|dancing_school|driving_school|first_aid_school|kindergarten|language_school|library|surf_school|toy_library|research_institute|training|music_school|school|traffic_park|university|atm|bank|clinic|dentist|doctors|hospital|pharmacy|casino|cinema|conference_centre|events_venue|exhibition_centre|gambling|music_venue|nightclub|planetarium|stage|theatre|courthouse|police|post_office|townhall|internet_cafe|marketplace|place_of_worship"](area.searchArea);
// Catégories I, T (Building)
node["building"~"clock_tower|college|government|museum|train_station|commercial|kiosk|office|retail|supermarket"](area.searchArea);
way["building"~"clock_tower|college|government|museum|train_station|commercial|kiosk|office|retail|supermarket"](area.searchArea);
// Catégorie M (Shop) - On prend tous les commerces pour être exhaustif
node["shop"](area.searchArea);
way["shop"](area.searchArea);
);
// Sortie des données
out body;
>;
out skel qt;
Exécutez la requête et maintenant vous n'avez plus qu'à convertir votre couche temporaire en couche définitive puis la transmettre via PuTTY pour pouvoir l'exploiter en VPS.