5

I need to download all highways as line features from OpenStreetMap in a large area (about 10.000km²). Therefore I wanted to use overpass-turbo with the following statement in the wizard:

 highway=*

in my chosen bounding box.

Unfortunately it looks like my bounding box is too big, because I get the error:

 runtime error: Query run out of memory using about 2048 MB of RAM.

Do I have to change my overpass turbo query or is it not possible to download large datasets in overpass turbo? Which alternative method could I use to download all highways as line features in a larger region. I need to have all attributes, like the type of the highway, "foot=yes/no/...", "access="yes/no/....", etc. and if I use something like geofabrik, these attributes do not appear.

  • Can you post your query as overpass turbo shortlink ("Share" button)? – mmd Jul 30 '16 at 17:23
  • 1
    > I use something like geofabrik, these attributes do not appear. Are you using shape files? Try .pbf format instead. – mmd Jul 30 '16 at 17:24
  • thank you very much. The link to my overpass turbo query: overpass-turbo.eu/s/hC3 Would you say my extent is too large? If i enter a maxsize, I get the following message: "Request rejected. (e.g. server not found, request blocked by browser addon, request redirected, internal server errors, etc.) Error while parsing the data (parsererror)." see: overpass-turbo.eu/s/hC4 – Duddel Aug 1 '16 at 8:23
  • 2
    I would highly recommend to use a download manager like wget rather than trying to download via browser. Use the link provided via "Export" -> "raw data directly from Overpass API" in overpass turbo for that purpose. In addition, change your parameter settings to something like [timeout:3600][maxsize:2073741824];. The resulting file will be about 1.3GB in size. – mmd Aug 1 '16 at 10:30
  • 1
    Sorry, I have no experience with wget on Windows. My point was to download the data in a way that it's not shown in a browser window but downloaded to a file instead. 1.3GB will for sure kill the browser when trying to display the data. If you're unsure how this all works, you should probably start with a very small bounding box and increase the size as you're getting more comfortable with the overall process. – mmd Aug 1 '16 at 19:07
3

You can kill any web API with too large requests.

As an alternative, download an extract of Geofabrik that fits your study area, and run the query using osmosis or osmfilter.

  • 2
    2048 MB is just the default setting if you don't provide a [maxsize: ] parameter setting. That's far from killing the web API. – mmd Aug 1 '16 at 8:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.