[GIS] Overpass API query error: query ran out of memory

openstreetmapoverpass-api

I am using a simple query the one that is in the examples which returns all data in the bounding box. Currently using overpass-api.de/api/. I have been trying for a couple of days thinking that server may be overloaded but i still get this error

enter image description here

enter image description here

Best Answer

By default Overpass API has a certain memory limit in place, to control the overall memory consumption of queries. However, you can easily override that default by providing the maxsize parameter, like shown in the following example. The increased maxsize limit would allow queries up to 2GB. The maximum possible value is a configuration setting on the server.

/*
This is a simple map call.
It returns all data in the bounding box.
*/
[out:xml][maxsize:2000000000];
(
  node({{bbox}});
  <;
);
out meta;

Also, downloading huge amounts of data in overpass turbo and displaying the results in the browser window is highly discouraged, as it will likely crash your browser. Be sure to use Export -> raw data directly from Overpass API instead to save the results in a file.

Related Question