[osmosis-dev] Osmosis + Windows + bzcat.exe and planet-latest.osm

Alberto Gorni gorni.alberto at gmail.com
Mon Dec 13 09:46:21 GMT 2010


Ciao!

I've downloaded the planet-latest.osm.bz2  i would like to export just the
administrative boundary of level 2.

I would like to do under windows...

i've succesfully test the osmosis  with a small osm file...   and this seems
that runs well:

osmosis --read-xml smallInputFile.osm enableDateParsing=no file=- --tf
accept-ways boundary=administrative --tf accept-ways admin_level=2 --tf
reject-relations --used-node smallOutputFile.osm

Now i would like to use the bigger bz2 file (13Gb!!) and i would like to try
bzcat.exe for windows...

i tryed this:

bzcat planet-latest.osm.bz2 | osmosis --read-xml enableDateParsing=no file=-
--tf accept-ways boundary=administrative --tf accept-ways admin_level=2 --tf
reject-relations --used-node --write-xml file=- | bzcat -z >
extractedBoundary.osm

but after two hours of cpu work i got this message:

bzcat: I/O or other error, bailing out.  Possible reason follows.
bzcat: Invalid argument
               Input file = planet-latest.osm.bz2, output file = (stdout)


What i can do??

Thanks
Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20101213/66cf2ba8/attachment.html>


More information about the osmosis-dev mailing list