[OSM-talk] Something wrong with planet file? Or osmosis?

Toby Murray toby.murray at gmail.com
Sat Nov 27 04:31:58 GMT 2010

I think you are seeing the problem with java's built in bzip2 library. It
doesn't support all bzip2 features. Try unzipping the planet file using an
external program and piping it into osmosis. Like this (assuming you are on
bunzip2 planet.bz2 | osmosis --rx /dev/stdin [...]

There is a small note about this on the bottom of the osmosis wiki page but
it should probably be a little more prominent somewhere...


On Nov 26, 2010 10:19 PM, "Michal Migurski" <mike at stamen.com> wrote:


I'm seeing an error with the latest planet file when I attempt to extract a
portion of it with osmosis.

I downloaded a copy of planet-101124.osm.bz2, and verified the md5sum.

I am also running the latest stable osmosis, 0.38.

Here's what I'm trying to do:

       osmosis --rx planet-101124.osm.bz2 --bb left=-122.353 bottom=37.749
top=37.891 right=-122.176 completeWays=yes completeRelations=yes --wx

...and here is the error I am seeing back:

       SEVERE: Thread for task 1-rx failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to parse xml
file planet-101124.osm.bz2. publicId=(null), systemId=(null),
lineNumber=3972, columnNumber=4. at

(full error at http://dpaste.com/hold/280419/)

I've looked at line 3972 of the planet file, and the XML structure there
appears to be fine, so I'm not sure what could be wrong. I tried adding some
explicit compressionMethod arguments to the --read-xml and --write-xml
arguments, with no change in behavior. I'm running Ubuntu 9.10, and I'm not
sure what other information might be pertinent to this error.

Has anyone else succeeded in extracting portions of planet using osmosis


michal migurski- mike at stamen.com

talk mailing list
talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20101126/eb1af296/attachment.html>

More information about the talk mailing list