Planet.osm

From OpenStreetMap Wiki

Jump to: navigation, search
Help
Available languages
EnglishFrançais日本語Русский


Planet.osm is a snapshot of the OpenStreetMap database.

Contents

What's included?

Planet.osm is the latest revision of the nodes, ways, relations and changesets in the database. This of course includes all the tags. It does not include the editing history. It does not include GPS traces behind the data.

The file is an XML formatted .osm file.

Update frequency

A new version of planet.osm is released weekly (currently every Thursday morning). We have these, going back to the start of April 2006. The current size of a planet.osm file is over 160 gigabytes (reduced to 7.3GB with bzip2 compression) as of November 2009.

The weekly dump normally starts at around 01:10am UK time on Wednesday morning and is guaranteed to contain all updates prior to that time. The dump is run within database transactions, but don't expect referential integrity. See Planet.osm/FAQ. The dump normally takes around 12 hours to complete.

Additionally we offer regular diffs. These are produced daily (under the 'daily' subdirectory) and more recently we also offer hourly diffs and minutely diffs. These have been produced with Osmosis and can be used to reconstruct the full dataset (see examples under the osmosis page for usage in various scenarios). Since these only contain the differences, they are much smaller files; A daily diff is generally under 10 MB compressed. For more information please see Planet.osm/diffs

Downloading

Due to the size of the planet files, some older distributions of wget do not work anymore. They are restricted to files of < 2GB, and attempting to download files larger than that will report a negative file size and fail -- obtain a newer version if that happens to you.

Originating URL:

Please check a mirror first!

Mirrors

Full Mirrors - FASTER and doesn't disturb the OSM server

planet.osm-only Mirrors

Extracts

Mirror Available planet extracts Updated Diffs
http://download.geofabrik.de/osm/ (daily excerpts any country of Europe plus some regions (e.g. Alps region); some countries outside Europe; any German Bundesland; any French Departement; England/Scotland/Wales; some English counties; some London Bouroughs)
Europe and Germany extracts mirrored at ftp://ftp5.gwdg.de/pub/misc/openstreetmap/download.geofabrik.de
Daily No
http://downloads.cloudmade.com/ (country extracts, navit, garmin and tomtom for the entire planet) Weekly No
http://hypercube.telascience.org/planet/ (extracts of NL, Scandinavia and Taiwan) Daily Yes
http://nick.dev.openstreetmap.org/downloads/planet/ (extracts of UK) Weekly No
http://download.freemap.sk/slovakia.osm/ (daily extract of Slovakia + daily diffs) Daily Yes
http://osm.kyblsoft.cz/archiv/ (daily extract of Czech Republic + daily diffs in http://osm.kyblsoft.cz/archiv-delta/) Daily Yes
http://osm.stilpu.org/daily/ (daily extract of Romania, also in Garmin, Navit and Gosmore format) Daily Yes
http://www.osmaustralia.org/osmausextract.php (daily extract of Australia) Daily No
http://planet.openstreetmap.nl (extract of the Benelux (Netherlands, Belguim and Luxemburg), Aruba, Bonaire, Curaçao, Saba, Sint Eustatius and Sint Maarten) Daily Yes
http://78.46.81.38/ (OSM Server Side Script small excerpts like a city, roughly files up to an uncompressed size of 300 MB) Hourly No
http://gis-lab.info/projects/osm-export.html (Russia regions; Belarus; update at 5 GMT) Daily No
http://archive.mmu.edu.my/openstreetmap/ (daily extract of Malaysia) Daily No

Bittorrent

Currently an experiment, I might automate this, maybe talking to the other mirror people aswell. --Skinkie 20:31, 4 April 2009 (UTC) The origin is powered by Oxilion.

Unpacking the File

Many tools allow you to use the files in compressed form but if need to unpack it for some reason, on Windows download the 7-zip uncompression tool. On Linux just write bzip2 -d planet.osm.bz2. If you want to do it differently, then check out this list of compression programs.

If you are handling the compression yourself with libbzip2, then note that the files are compressed with pbzip2 and contain multiple streams that need to be handled as described in section 3.4.8 of the bzip2 documentation.

Processing the File

The file is in the OSM XML format. There are a number of scripts to process the file available in SVN, including ones to put it back into a database.

  • Osmosis is a Java tool that can import a planet file into your db.
  • planetosm-to-db.pl creates a current-ruby-server-database too (or a slightly different one for PostgreSQL, as used by Where Are They, including the db schema). It stores the node and segment ids in memory, so it can import only some of the data (exclude or include), and normally only uses about 100MB. It is not fast, taking several hours to load a UK-only planet excerpt.
  • If you need a db for testing purposes only, http://richard.dev.openstreetmap.org/osm05.sql.gz is a 75Mb SQL dump of the UK from January 2008. (current_ tables only - but you can populate the other tables from there - and no relations tables.)
  • (Other tools in svn have not been updated for the 0.5 database structure and are consequently not usable.)
  • Tagwatch contains code that processes OSM files
  • There is a PERL module which can work on normal and compressed osm files here: osm.pm. Examples can be found here User:Gary68

Stuff done with planet.osm

Past versions of the planet file

Old versions of the planet file are available at http://planet.openstreetmap.org/ as well. The Historical Coverage page describes a service that allows you to view data from the past and how it developed.

Statistics

  • tagstathas statistics on the tag for nodes, ways and relations.
  • Stats page on the wiki
Personal tools
Recent changes