[OSM-dev] c:\osmosis\osmosis-0.31\bin> osmosis.bat -jar osmosis.jar --read-xml 20090822-20090823.osc --way-key-value keyValueList="node"

james pruett gpscruise at gmail.com
Thu Sep 3 05:59:57 BST 2009


I got a little further...

Q: How could I get further with this. Should I ditch DOS, use Eclipse, use
*.osm instead of *.osc files?

Any hints appreciated.
BTW, All I am after at present are the maxspeed nodes in *.sql format if
anyone wants a side job....
rgds,
jim pruett


If I run osmosis.bat by itself, it runs fine.

When I add --read-xml filename.osc it gives this error.

C:\osmosis\osmosis-0.31.2\bin>java  -cp
C:\osmosis\osmosis-0.31.2\osmosis.jar;C:\osmosis\osmosis-0.31.2\lib\default\aopalliance-1.0.jar;C:\osmosis\osmosis-0.31.2\lib\default\bzip2-20090327.jar;C:\osmosis\osmosis-0.31.2\lib\default\commons-dbcp-1.2.2.jar;C:\osmosis\osmosis-0.31.2\lib\default\commons-logging-1.1.1.jar;C:\osmosis\osmosis-0.31.2\lib\default\commons-pool-1.3.jar;C:\osmosis\osmosis-0.31.2\lib\default\jpf-1.5.jar;C:\osmosis\osmosis-0.31.2\lib\default\mysql-connector-java-5.1.6.jar;C:\osmosis\osmosis-0.31.2\lib\default\postgis-1.3.2.jar;C:\osmosis\osmosis-0.31.2\lib\default\postgresql-8.3-603.jdbc4.jar;C:\osmosis\osmosis-0.31.2\lib\default\spring-beans-2.5.6.SEC01.jar;C:\osmosis\osmosis-0.31.2\lib\default\spring-context-2.5.6.SEC01.jar;C:\osmosis\osmosis-0.31.2\lib\default\spring-core-2.5.6.SEC01.jar;C:\osmosis\osmosis-0.31.2\lib\default\spring-jdbc-2.5.6.SEC01.jar;C:\osmosis\osmosis-0.31.2\lib\default\spring-tx-2.5.6.SEC01.jar;C:\osmosis\osmosis-0.31.2\lib\default\stax2-api-3.0.1.jar;C:\osmosis\osmosis-0.31.2\lib\default\woodstox-core-lgpl-4.0.3.jar
org.openstreetmap.osmosis.core.Osmosis  --read-xml
file="20090822-20090823.osc" --write-xml file="planetout.osm"
Sep 2, 2009 11:54:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.31.2
Sep 2, 2009 11:54:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Sep 2, 2009 11:54:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Sep 2, 2009 11:54:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Sep 2, 2009 11:54:56 PM
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
waitForCompletion
SEVERE: Thread for task 1-read-xml failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: This does not appear
to be an OSM XML file.
    at
org.openstreetmap.osmosis.core.xml.v0_6.impl.OsmHandler.startElement(OsmHandler.java:87)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at
org.openstreetmap.osmosis.core.xml.v0_6.XmlReader.run(XmlReader.java:108)
    at java.lang.Thread.run(Unknown Source)
Sep 2, 2009 11:54:56 PM 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.waitForCompletion(Pipeline.java:146)
    at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:85)
    at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090902/61979292/attachment.html>


More information about the dev mailing list