On Sat, Mar 1, 2008 at 11:32 AM, Nathan Scott < [EMAIL PROTECTED]> 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: > > [EMAIL PROTECTED] 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
_______________________________________________ talk mailing list [email protected] http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

