This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

wget can’t download requested file

0

Hi,

I am trying get map from openstreetmaps, but having problems. (debian system) $ wget -O patagonie.osm "http://api.openstreetmap.org/api/0.6/map?bbox=-75.64,-56.17,-64.70,-50.00" --2011-10-20 23:07:43-- http://api.openstreetmap.org/api/0.6/map?bbox=-75.64,-56.17,-64.70,-50.00 Resolving api.openstreetmap.org (api.openstreetmap.org)... 193.63.75.100, 193.63.75.99 Connecting to api.openstreetmap.org (api.openstreetmap.org)|193.63.75.100|:80... connected. HTTP request sent, awaiting response... 400 Bad Request 2011-10-20 23:07:43 ERROR 400: Bad Request.

Is this data too big?

regards

mira

asked 20 Oct '11, 22:21

miramikes's gravatar image

miramikes
26224
accept rate: 0%


2 Answers:

2

Yes, it's apparently too big.

When I open http://api.openstreetmap.org/api/0.6/map?bbox=-75.64,-56.17,-64.70,-50.00 in Firefox I get:

The maximum bbox size is 0.25, and your request was too large. Either request a smaller area, or use planet.osm

You will see the same error message if you add the -S switch to your wget command (i.e. wget -SO patagonie.osm ...).

answered 20 Oct '11, 22:36

gnurk's gravatar image

gnurk
6.1k106096
accept rate: 15%

edited 21 Oct '11, 00:13

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273

Thank you for clarifying

(21 Oct '11, 00:56) miramikes

2

The main OpenStreetMap API is provided for editing the map, not for downloading large extracts for other projects. So it limits how large an area you can download. See the API usage policy.

If you want a larger extract, eg a whole country, then it is probably best to use a Planet extract. These are available from a number of different providers, covering different parts of the world, see Planet.osm extracts. Geofabrik and Cloudmade provide extracts for Argentina and Chile, or for the whole of South America, which would cover the area of your bounding box request.

answered 21 Oct '11, 00:01

Vclaw's gravatar image

Vclaw
9.2k895141
accept rate: 22%

Ok, thank you.

(21 Oct '11, 00:55) miramikes

Source code available on GitHub .