Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Warin
Rather than do a planet wide dump I would encourage you to do a smaller area dump so you get a smaller sample to test first? On 14/08/19 07:41, Léo El Amri via talk wrote: Hello, I'm trying to fetch countries, their borders, and their capitals through Overpass API, but the server never

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Léo El Amri via talk
I was doing a query for all city and towns before doing a query of all "capital=yes" in this set. This was only the result of the interserction that was sent to the output. I didn't really knew how to "OR" the filters. Now I see, and your solution looks better :) On 14/08/2019 14:51, Dave F via

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Yuri Astrakhan
You can use Sophox to pull this type of information, possibly just not all at once. Here's a query that will give you all first level country sub-divisions (Canada in this case), as well as each province's Captial, Flag image, and ISO codes. https://tinyurl.com/y6jowy8v (this query was modified

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread wambacher
Hi Léo, ok, if you need raw data you should ask for "raw data" and not "countries, their capitals, and their boundaries" :( > In the end, I'm sure I'll need at least all countries of the world up to > the admin level 2 (With their capitals, if they have one (And aren't one > themselves)) and all

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Dave F via talk
This may help for future routines, if not this one: nwr[place~"city|town"][capital=yes][admin_level=2]->.Capitals; .Capitals out center; in your original you were initially searching *all* of the world's towns & cities instead of 194 capitals. (OSM appears to be missing one) It'll need

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Léo El Amri via talk
On 14/08/2019 13:11, wambac...@posteo.de wrote: > did you read my mail? My website is made for that, believe me. > > What do you need? Which countries? Up to which admin level? Which format > (shp? json?) Hi Walter, Yes, I visited your website this morning. It is interesting on a

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Michael Reichert
Hi, Am 13/08/2019 um 23.41 schrieb Léo El Amri via talk: > I'm trying to fetch countries, their borders, and their capitals through > Overpass API, but the server never replies to me (With a timeout:3600 > setting, the server reply with a 502 error after a while). > I'm only a beginner with this

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Warin
You have set the "reply to" on your outgoing messages such that replies go to you and not this list. That means the list is not aware of the replies and cannot make comments on them. This hinders understanding and communication. It is better that replies go to the list where all can read

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread wambacher
Hi Léo, did you read my mail? My website is made for that, believe me. What do you need? Which countries? Up to which admin level? Which format (shp? json?) Regards walter -- My projects: Admin Boundaries of the World Missing Boundaries

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread Léo El Amri via talk
Hi again, Thanks for the replies I did several other tries this morning, but it looks like the borders are too much to handle. Taking your answers into account, rather than doing thousands of queries on the Overpass API, I think I'll get the whole Planet file, then use a local tool to get the

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-14 Thread wambacher
Hi Léo Am 13.08.19 um 23:41 schrieb Léo El Amri via talk: > Hello, > > I'm trying to fetch countries, their borders, and their capitals through > Overpass API, but the server never replies to me ... https://wambachers-osm.website/boundaries will give you the country borders - including the *osm

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-13 Thread Wayne Emerson, Jr. via talk
Yes I agree that every country's borders on earth adds up to a lot of data. And my last reply could have been clearer. If you look at his original query (which is mangled now by the email), He was looking for the NODES of each country's capital city, not the city borders.?? And although the

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-13 Thread Warin
On 14/08/19 11:39, Wayne Emerson, Jr. via talk wrote: He wasn't asking for every town on earth. Just every country's border, and every country's capitol. I am a noob too so can't answer his question. But I did run the wizard with "admin_level=2 and type:node" and got 3,988 nodes. Which begs

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-13 Thread Wayne Emerson, Jr. via talk
He wasn't asking for every town on earth. Just every country's border, and every country's capitol. I am a noob too so can't answer his question. But I did run the wizard with "admin_level=2 and type:node" and got 3,988 nodes. Which begs the question, why does Argentina have dozens of admin

Re: [OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-13 Thread Warin
On 14/08/19 07:41, Léo El Amri via talk wrote: Hello, I'm trying to fetch countries, their borders, and their capitals through Overpass API, but the server never replies to me (With a timeout:3600 setting, the server reply with a 502 error after a while). I'm only a beginner with this API, so

[OSM-talk] Overpass API - Fetching countries, their capitals, and their borders

2019-08-13 Thread Léo El Amri via talk
Hello, I'm trying to fetch countries, their borders, and their capitals through Overpass API, but the server never replies to me (With a timeout:3600 setting, the server reply with a 502 error after a while). I'm only a beginner with this API, so maybe my request is not efficient: (