[OSM-dev] Omosis Polygon support

Sven Anders sven at anders-hamburg.de
Wed Feb 18 15:46:35 GMT 2009


Hi,

when i start osmosis with:


bin/osmosis --rx file=europe.osm.bz2  \
--bp ./svn.openstreetmap.org/applications/utils/osm-extract/polygons/spain.poly --wx\
 file=spain.osm\

I got an error message:

Feb 18, 2009 4:45:31 PM com.bretth.osmosis.core.Osmosis run
INFO: Osmosis Version 0.30
Feb 18, 2009 4:45:31 PM com.bretth.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Feb 18, 2009 4:45:31 PM com.bretth.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Feb 18, 2009 4:45:31 PM com.bretth.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Feb 18, 2009 4:45:31 PM 
com.bretth.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SEVERE: Thread for task 1-rx failed
com.bretth.osmosis.core.OsmosisRuntimeException: Could not find two 
coordinates on line (2).
        at 
com.bretth.osmosis.core.filter.common.PolygonFileReader.parseCoordinates(PolygonFileReader.java:271)
        at 
com.bretth.osmosis.core.filter.common.PolygonFileReader.loadSectionPolygon(PolygonFileReader.java:210)
        at 
com.bretth.osmosis.core.filter.common.PolygonFileReader.loadPolygon(PolygonFileReader.java:150)
        at 
com.bretth.osmosis.core.filter.v0_5.PolygonFilter.process(PolygonFilter.java:57)
        at 
com.bretth.osmosis.core.container.v0_5.BoundContainer.process(BoundContainer.java:68)
        at 
com.bretth.osmosis.core.filter.v0_5.AreaFilter.process(AreaFilter.java:82)
        at 
com.bretth.osmosis.core.xml.v0_5.impl.BoundElementProcessor.end(BoundElementProcessor.java:85)
        at 
com.bretth.osmosis.core.xml.v0_5.impl.OsmHandler.endElement(OsmHandler.java:109)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.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 com.bretth.osmosis.core.xml.v0_5.XmlReader.run(XmlReader.java:109)
        at java.lang.Thread.run(Unknown Source)
Feb 18, 2009 4:45:31 PM com.bretth.osmosis.core.Osmosis main
SEVERE: Execution aborted.
com.bretth.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
        at 
com.bretth.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
        at com.bretth.osmosis.core.Osmosis.run(Osmosis.java:85)
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:30)

Does omosis not support multi -Polygons like in spain.poly?

Best Regards

Sven Anders




More information about the dev mailing list