Overpass API developpement

Text archives Help


Re: [overpass] GeoJson form Overpass with curl


Chronological Thread 
  • From: Etienne Trimaille <etienne.trimaille@gmail.com>
  • To: overpass@listes.openstreetmap.fr
  • Subject: Re: [overpass] GeoJson form Overpass with curl
  • Date: Fri, 29 Jan 2016 16:11:37 +0100

You can't get geojson with overpass.
Only these formats are supported : http://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Output_Format_.28out.29

If you want geojson, I will recommand you to  use the 'osm' output and then use a tool like OGR.


2016-01-29 15:48 GMT+01:00 <aeugster@hsr.ch>:
I am trying to get Data from http://overpass-turbo.osm.ch/.

Unfortunately the request I am trying to do is to much for my computer and I
have to use comandline programm for the data transfer. I chose to use curl.

When I execute my command i get a json format, I however want a geoJson
format.

Is there a way to do that?

my current query is as follows:
curl -o gemeinden.json -g
"http://overpass-api.de/api/interpreter?data="[out:json][timeout:180];
(relation[\"admin_level\"=\"4\"](45.13167,5.45471,48.49112,12.44201););%20out
%20body;>;out%20skel%20qt;"

kind regars
alex




Archive powered by MHonArc 2.6.18.

Top of page