Planet.osm
From OpenStreetMap
Planet.osm is a snapshot of the OpenStreetMap database
Contents |
What's included?
Planet.osm is the latest revision of the nodes, ways, and relations 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 XML formatted and follows an XML Schema (though this is out-of-date)
Update frequency
A new version of planet.osm is released weekly (currently every Wednesday morning). We have these, going back to the start of April 2006. The current size of a planet.osm file is over 60 gigabytes (reduced to 3.6GB with bzip2 compression).
The weekly dump starts at 01:00 each Wednesday night and is guaranteed to contain all updates prior to that time. It may contain updates from after the start time, but these may not have referential integrity (eg ways that reference nodes that are not included).
Additionally we offer regular diffs. There 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 around 2 or 3 MB.
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 try use a mirror first!
Mirrors
Full Mirrors (probably faster and you don't disturb the osm server ;)
- http://mirror.openstreetmap.nl/planet/ (updated daily)
- http://ftp.heanet.ie/mirrors/openstreetmap.org/ No longer updated, last update jan 4th. (updated 4 times/day, also available via ftp and rsync)
- http://planet.king-nerd.com (updated every 4 hours - includes weekly extracts of the USA and all 50 states.)
planet.osm-only Mirrors
- http://ftp.snt.utwente.nl/pub/misc/openstreetmap/planet-latest.osm.bz2
- http://roland-ramthun.de/osm/official/planet-latest.osm.bz2 (MD5SUMS available, updated every 2 hours)
- http://ftp.ecki-netz.de/osm/planet-latest.osm.bz2 (updated weekly)
- http://www.nasten-ka.de/osm/ (slightly outdated per 14.01.2008)
- http://www.zimmerheimer.de/planet.osm/ (File size seems to be damaged per 14.01.2008)
- http://www.openstreetmap.ca/planet/ (updated weekly plus periodic extracts of regions in North America)
- http://osm.bandnet.org/planet.osm/ (includes p2p magnet links - last updated October 2007)
Extracts
- http://nick.dev.openstreetmap.org/downloads/planet/ (extracts of UK)
- http://hypercube.telascience.org/planet/ (extracts of NL, Scandinavia and Taiwan)
- http://www.freemap.sk/slovakia.osm/ (extract of Slovakia)
- http://osm.baebler.net/data/ (extract of Slovenia)
- http://kubajz.kbx.cz/junk/osm/ (extract of Czechia)
- http://hexagone.openstreetmap.fr (extract of France)
- http://download.geofabrik.de/osm/ (excerpts for Europe as a whole, various European countries, and 1st level administrative subdivisions for some)
- http://download.geofabrik.de/osm/europe/ (extract of Austria, Belgium, Denmark, Finland, France, Germany+Länder, Great britain, Ireland, Italy, Luxembourg, Netherlands, Norway, Poland, Spain, Sweden and Switzerland, updated daily)
- http://roland-ramthun.de/osm/extracts/ (extracts of many countries (not finished yet, will be more), updated as given in the description of every directory)
- http://www.gurkensalat.com/geostuff/osm-extracts/ (extracts of Turkey and Cyprus, updated daily)
- http://osm.stilpu.org/ (daily extract of Romania, weekly extract is split in parts so you can load them in JOSM)
- http://www.osmaustralia.org/osmausextract.php (weekly extract of Australia, will be daily-ish eventually)
Unpacking the File
To unpack the file 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.
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 new 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.)
Stuff done with planet.osm
- (FIXME broken link :-() planet.osm in GPSDrive imports the OSM data in the GPSDrive routing application.
- Map of OSM coverage in Europe is just a picture of the coverage of OSM of Europe as of April 2006
- Importing Planet.osm into QGIS
- Print OpenStreetMap with Gnuplot print the world into PDF files.
- Little-osm is a stand-alone webserver capable of importing planet.osm and deliver
/maprequests. It works with JOSM as an off line, read-only installation. - Where Am I? and Where Is It? - Python script to find places, nodes, roads etc. near to your given location - see Where Are They
- Osmarender, Mapnik and Tiles@home used to draw maps - now mostly use the protocol interface
- Gosmore viewer with incremental search
- Importing Planet.osm into ArcGIS
- Instructions for building a slippy map using planet.osm on the Fedora Linux distribution
- Script to clip Planet.osm into smaller data file but still keep osm data format (goto www.digitalmobilemap.com and click on FAQ to download the script) using java to clip Planet.osm into a smaller data file that contains only osm map data (nodes/segments/ways) within bounds. The clipped data file not only keeps osm data format but also keeps node's labels and way's labels in Unicode UTF-8 format. The java script does not require much memory and can process large planet.osm file very fast (< 8 minutes). You can use this script to create a smaller planet.osm file. A smaller planet.osm file may be useful for you if you want to import it to your local database server for local development as it will take less time to import and debug.
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
-
http://www.ostertag.name/osm/ - Statistics/Errors- FIXME. This link no longer contains any planet.osm stats - Stats page on the wiki

