[OSM-dev] osmosis, can't extract

Damian Proksch damian.proksch at gmx.de
Thu Dec 25 14:08:39 GMT 2008


Hello, I'm a newbie,

I have tried to extract with osmosis, and I got this reply
of my CMD-Line:

 C:\osmosis-0.29.5>java -Xmx600 -jar osmosis.jar --rx enableDateParsing=no file=C
:\osmosis-0.29.5\TestOsm\OSM\austria.osm.bz2 --tee 1 --bounding-box left=9.5 rig
ht=13 top=47.59167 bottom=46.5 --write-xml file="C:\osmosis-0.29.5\TestOsm\Extra
ct\austria_1.osm.bz2"
25.12.2008 14:55:51 com.bretth.osmosis.core.Osmosis run
INFO: Osmosis Version 0.29.5
25.12.2008 14:55:51 com.bretth.osmosis.core.Osmosis run
INFO: Preparing pipeline.
25.12.2008 14:55:51 com.bretth.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
25.12.2008 14:55:51 com.bretth.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
25.12.2008 14:55:51 com.bretth.osmosis.core.pipeline.common.ActiveTaskManager wa
itForCompletion
SCHWERWIEGEND: Thread for task 1-rx failed
java.lang.OutOfMemoryError: Java heap space
        at org.apache.tools.bzip2.CBZip2OutputStream.allocateCompressStructures(
CBZip2OutputStream.java:1507)
        at org.apache.tools.bzip2.CBZip2OutputStream.<init>(CBZip2OutputStream.j
ava:296)
        at org.apache.tools.bzip2.CBZip2OutputStream.<init>(CBZip2OutputStream.j
ava:276)
        at com.bretth.osmosis.core.xml.common.CompressionActivator.createCompres
sionOutputStream(CompressionActivator.java:62)
        at com.bretth.osmosis.core.xml.common.BaseXmlWriter.initialize(BaseXmlWr
iter.java:123)
        at com.bretth.osmosis.core.xml.v0_5.XmlWriter.process(XmlWriter.java:47)

        at com.bretth.osmosis.core.filter.v0_5.AreaFilter.process(AreaFilter.jav
a:122)
        at com.bretth.osmosis.core.container.v0_5.NodeContainer.process(NodeCont
ainer.java:58)
        at com.bretth.osmosis.core.filter.v0_5.AreaFilter.process(AreaFilter.jav
a:82)
        at com.bretth.osmosis.core.tee.v0_5.EntityTee$ProxySinkSource.process(En
tityTee.java:120)
        at com.bretth.osmosis.core.tee.v0_5.EntityTee.process(EntityTee.java:66)

        at com.bretth.osmosis.core.xml.v0_5.impl.NodeElementProcessor.end(NodeEl
ementProcessor.java:103)
        at com.bretth.osmosis.core.xml.v0_5.impl.OsmHandler.endElement(OsmHandle
r.java:109)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.
emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:109)
        at java.lang.Thread.run(Unknown Source)
25.12.2008 14:55:51 com.bretth.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
com.bretth.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
        at com.bretth.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pi
peline.java:146)
        at com.bretth.osmosis.core.Osmosis.run(Osmosis.java:81)
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:30)

C:\osmosis-0.29.5>


Can someone say what I have done wrong?
My system is:
Winxp prof SP3
Intel Pentium 4 with 3GHz
2.0 GB RAM

Thanks a lot for your answers.

damian

-- 
Mit freundlichen Grüßen
Damian Proksch
mailto:damian.proksch at gmx.de





More information about the dev mailing list