[osmosis-dev] osmosis 0.32 error with planet file

Alexander Chmyr achmyr at cloudmade.com
Fri Dec 11 13:46:20 GMT 2009


Hello  James,

Well, the planet.osm.org planet file is packaged with pbzip (parallel bzip)
i'm not sure, that Java library supports that, so if you want to be sure
that it works, do next:

1. install pbzip (if you have no any already)
2. learn how to speed-up pbzip process with -p parameter
3. run osmosis through pipe:  pbzip -p4 -dc planet.osm.bz2 | osmosis -rx
file=/dev/stdin ....

This should work.

Alexander Chmyr
Senior Software Engineer
Cogniance, Inc
--------------------------
skype: alex.smudgy



On Fri, Dec 11, 2009 at 3:36 PM, Bellenger James R Mr NGA-IIG USA CIV <
James.R.Bellenger at nga.mil> wrote:

> I am trying to clip out a region from the entire planet file and I am
> getting an error.
>
> My command is:
>
> /web/GoogleEarth/openstreetmap/osmosis/osmosis-0.32/bin/osmosis
> --read-xml file="planet-091209.osm.bz2" compressionMethod=bzip2
> inPipe.0="mypipe" --bounding-box top=-37.4201820576485
> left=144.487066931992 bottom=-38.22018205764854 right=145.587066931992
> --write-xml file="melbourne.osm" outPipe.0="mypipe"
>
> The error message is:
>
> Dec 11, 2009 7:10:01 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Osmosis Version 0.32
> Dec 11, 2009 7:10:02 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Preparing pipeline.
> Dec 11, 2009 7:10:02 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Launching pipeline execution.
> Dec 11, 2009 7:10:02 AM org.openstreetmap.osmosis.core.Osmosis run
> INFO: Pipeline executing, waiting for completion.
> Dec 11, 2009 7:10:03 AM
> org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
> waitForCompletion
> SEVERE: Thread for task 1-read-xml failed
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to parse
> xml file planet-091209.osm.bz2.  publicId=(null), systemId=(null),
> lineNumber=4312, columnNumber=100.
>        at
> org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:113
> )
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: org.xml.sax.SAXParseException: XML document structures must
> start and end within the same entity.
>        at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
>        at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown
> Source)
>        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>        at org.apache.xerces.impl.XMLEntityScanner.scanLiteral(Unknown
> Source)
>        at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unkn
> own Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> nknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>        at
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
>        at
> org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:108
> )
>        ... 1 more
> Dec 11, 2009 7:10:03 AM org.openstreetmap.osmosis.core.Osmosis main
> SEVERE: Execution aborted.
> org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more
> tasks failed.
>        at
> org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletio
> n(Pipeline.java:146)
>        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:85)
>        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
>
> I have used md5_sum to check that the file was downloaded correctly.
>
> Based on a uname -a call my system type is
>
> Linux giatwebstl02 2.6.16.60-0.57.1-default #1 Tue Nov 3 11:21:35 UTC
> 2009 x86_64 x86_64 x86_64 GNU/Linux
>
> Jim Bellenger
> Imagery and Geospatial Scientist
> NGA/II-GIAT
> 314-676-0887, DSN 846-0887
> Secure 577-3543
>
>
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20091211/1866dde0/attachment.html>


More information about the osmosis-dev mailing list