[Talk-it] Come estrarre le Città italiane da overpass ?

Simone Cortesi simone a cortesi.com
Mar 14 Lug 2015 09:17:10 UTC


2015-07-14 11:06 GMT+02:00 Luca Moiana <luca_moiana at hotmail.com>:

>
>
> mi servirebbe estrarre da OSM i nodi delle città italiane, ho provato con
> overpass turbo, con questa query:
>
> place=city in Italy
>
>
>
> Ma senza fortuna, dove sbaglio?
>

nel wizard scrivi "city in italy" e ottieni questo (non ottieni tutte le
città perche' non tutte sono place=city, ma anche place=town:
http://wiki.openstreetmap.org/wiki/Places):

/*
This has been generated by the overpass-turbo wizard.
The original search was:
“city in italy”
*/
[out:json][timeout:250];
// fetch area “italy” to search in
{{geocodeArea:italy}}->.searchArea;
// gather results
(
  // query part for: “city”
  node["place"="city"](area.searchArea);
  way["place"="city"](area.searchArea);
  relation["place"="city"](area.searchArea);
);
// print results
out body;
>;
out skel qt;


-- 
-S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-it/attachments/20150714/3a46a76c/attachment.html>


Maggiori informazioni sulla lista Talk-it