[OSM-talk] Problem with Osmosis
Karl Newman
siliconfiend at gmail.com
Sat Mar 1 22:48:33 GMT 2008
On Sat, Mar 1, 2008 at 11:32 AM, Nathan Scott <
scottn at omnitechsolutions.co.uk> wrote:
> 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?
>
>
You need to use backslashes, not forward slashes, to indicate the
continuation of a line in your shell script. Like this:
java -mx1024m -jar osmosis.jar --read-xml file=uk-080227.osm \
--bounding-polygon file="MyArea.txt" --write-xml \
file="MyArea.osm"
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080301/63d223ee/attachment.html>
More information about the talk
mailing list