NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

hi, I have build a Batch-file for processing OSM. i whant to call Osmosis multiple times and call an other program after that

so i do that:

osmosis\bin\osmosis.bat --rx file="gesamtbereich-map.osm" --bounding-box top=53.743 left=9.669 bottom=53.287 right=10.317 --wx file="grossberich-map.osm"
echo test

but after osmosis the "test" wouldn't be printed.

the only result is that:

Der Befehl "JAVACMD" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
10.05.2011 15:23:05 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.38
10.05.2011 15:23:05 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
10.05.2011 15:23:05 org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
10.05.2011 15:23:05 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
10.05.2011 15:23:06 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
10.05.2011 15:23:06 org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 1437 milliseconds.

where is the "test"?

asked 10 May '11, 14:25

josias's gravatar image

josias
59871523
accept rate: 33%


There are a couple of things you might want to try. You could for example try adding call before the osmosis line to see if that completes the osmosis line before returning to the batch file. Alternatively you could put multiple commands on a single line separated by && as per the batch file I use for keeping a local .osm file synced (imagine that the following is all on a single line):

osmosis --rri --simc --rx tendring.osm --ac --bp clipIncompleteEntities=yes file=tendring.txt --wx new.osm && copy new.osm tendring.osm /y && del new.osm
permanent link

answered 10 May '11, 14:44

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

1

Using CALL works for me in a test batch script. Very useful answer. You could also use cygwin which will run the osmosis.bat DOS batch file successfully.

(10 May '11, 15:04) SK53 ♦
1

thanks, that works: call osmosis.bat

(10 May '11, 16:01) josias

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×252
×48
×12

question asked: 10 May '11, 14:25

question was seen: 6,567 times

last updated: 10 May '11, 16:01

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum