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

Can I download an OSM Planet file with FTP?

1

I want to download an OSM planet file. I make historical tiles using OSM planet files this is why I want to download one. Also, I want to experiment having this file on a remote server and try clipping out sections of it.

The OSM Planet file can be quite large (almost 30gb for the pbf version).

An issue I have come across downloading it from http://planet.osm.org is that my download get's interrupted. I'm assuming it is from my side (Comcast...). It is a http download and when http downloads break, then you have to start over again.

Is there a ftp download or another type of download available? Wouldn't it make sense with such large files?

Thanks,

Tom

asked 23 Jun '15, 01:33

tgertin's gravatar image

tgertin
70448
accept rate: 0%


3 Answers:

2

Your assumption is not true. HTTP downloads can be resumed. This feature has to be supported by both the server and the client but it is quite unusual to not support it (except for many one-click hosters and similar services). Hence you should try to find out why you can't resume your download.

Resuming a HTTP download from http://planet.osm.org works fine here.

answered 23 Jun '15, 07:58

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

1

It is not true that HTTP downloads cannot be resumed (see e..g the --continue option of the wget command line utility, or use some kind of download manager).

There is an FTP mirror of OpenStreetMap data, including old planet files, here: ftp://ftp.heanet.ie/pub/openstreetmap.org/

Note that if you download the "full history planet" then you can make snapshots for any point in time from that, and don't need to download tons of planet files.

answered 23 Jun '15, 07:59

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

1

If you use wget on the command line to download the file (e.g.: wget http://planet.openstreetmap.org/pbf/planet-latest.osm.pbf), and it gets interrupted, then you can just pass in the -c option and wget will automatically continue downloading the file. e.g.: wget -c http://planet.openstreetmap.org/pbf/planet-latest.osm.pbf. If that gets interrupted again, you can just call that command again and it'll pick up where it left of (etc. etc.)

answered 23 Jun '15, 08:53

rorym's gravatar image

rorym
5.4k1449100
accept rate: 11%

Source code available on GitHub .