Thanks Toby, I hadn't seen that note on the wiki page but trying it now. bunzip2 -c planet-101124.osm.bz2 | osmosis --rx /dev/stdin --bb left=-122.353020 bottom=37.749272 top=37.890570 right=-122.176208 completeWays=yes completeRelations=yes --wx /dev/stdout | gzip -c > oakland-101124.osm.gz
-mike. On Nov 26, 2010, at 8:31 PM, Toby Murray wrote: > 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 > linux): > 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... > > Toby > > >> On Nov 26, 2010 10:19 PM, "Michal Migurski" <[email protected]> wrote: >> >> Hi, >> >> 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 >> oakland-101124.osm.bz2 >> >> ...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 >> org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:113) >> >> (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 >> recently? >> >> -mike. >> >> ---------------------------------------------------------------- >> michal migurski- [email protected] >> 415.558.1610 >> >> >> >> >> _______________________________________________ >> talk mailing list >> [email protected] >> http://lists.openstreetmap.org/listinfo/talk > ---------------------------------------------------------------- michal migurski- [email protected] 415.558.1610 _______________________________________________ talk mailing list [email protected] http://lists.openstreetmap.org/listinfo/talk

