[OSM-talk] Problem with Osmosis

Nathan Scott scottn at omnitechsolutions.co.uk
Sat Mar 1 17:32:21 GMT 2008


I have JAVA1.6 downloaded and installed.

I have a shell script do_it that looks like this:
java -mx1024m -jar osmosis.jar --read-xml file=uk-080227.osm /
--bounding-polygon file="MyArea.txt" --write-xml /
file="MyArea.osm"

and MyArea.txt looks like this:
North_Bristol
1
        51.6304 -2.5619
        51.6304 -2.4925
        51.4865 -2.4925
        51.4865 -2.5619
END
END

And I get this:

[scottn at localhost osmosis-0.24]$ sh do_it
01-Mar-2008 17:27:19 com.bretth.osmosis.core.Osmosis main
INFO: Osmosis Version 0.24
01-Mar-2008 17:27:19 com.bretth.osmosis.core.Osmosis main
INFO: Preparing pipeline.
01-Mar-2008 17:27:19 com.bretth.osmosis.core.Osmosis main
SEVERE: Main thread aborted.
com.bretth.osmosis.core.OsmosisRuntimeException: The following data 
pipes have not been terminated with appropriate output sinks (default.0).
        at 
com.bretth.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:88)
        at 
com.bretth.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:106)
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:48)
do_it: line 2: --bounding-polygon: command not found

Has anyone got any ideas?

Thanks and Regards,

Nathan.




More information about the talk mailing list