[OSM-dev] Using osmosis to generate a full-planet.osm file

Scott Crosby scott at sacrosby.com
Thu Apr 7 04:06:57 BST 2011


On Mon, Apr 4, 2011 at 12:14 PM, Eric Wolf <ebwolf at gmail.com> wrote:

> I assume osmosis is used to generate the full-planet.osm file. I want to
> generate a similar file from my OSM server. What is the proper set of
> parameters to do this?
> I've tried this with a failure:
> osmosis --read-apidb-change validateSchemaVersion=no host="localhost"
> database="openstreetmap" user="XXXXX" password="XXXXX" readFullHistory=yes
> readAllUsers=yes --write-xml file="~/test.osm"

> Maybe I'm just being lazy or maybe I'm not used to the command line
> parameters for osmosis... But I want to ensure that I'm generate the file
> the same as full-planet because I want to test my scripts against my smaller
> full-planet before turning it loose on the 400GB+ monster.

I believe the osmosis database representation for a planet is not the
same as what is used by osm servers. OSM servers use a special dump
program for generating planets. However, you can test your code
against geofabrik extracts. If it works there, it should work on an
entire planet. The only difference in formats between a geofabrik
extract and the planet has a bunch of  <changeset> </changeset>
elements that you can ignore.

Depending on what you are doing, you may want to use the PBF format.

Scott



More information about the dev mailing list