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

Similar to this question I am also having windows installation problems. I am using osmosis-0.39 and I have installed JRE, but when I run the batch file, it runs through some lines of code and then closes.

When I run the batch file in cmd, it looks like everything has run, "org.openstreetmap.osmosis.core.Osmosis run, INFO: Total execution time: 562 milliseconds." but then what do I do?

This might be an absolutely obvious questions, but where am I actually writing the java commands into?

Sorry for such basic questions?

asked 07 Jun '11, 11:16

Nat%20Evatt's gravatar image

Nat Evatt
16112
accept rate: 0%

converted to question 07 Jun '11, 18:40

Harry%20Wood's gravatar image

Harry Wood
9.5k2588128


osmosis is a bat file itself so call it with a CALL command to prevent closing after execution.

CALL osmosis
permanent link

answered 01 Dec '16, 19:23

yaugenka's gravatar image

yaugenka
111
accept rate: 0%

I think if you just run 'osmosis' while in the bin directory then it will start up (via the bat file), think about all the exciting tasks you given it (none whatsoever), and then report that it's finished. That's what you're seeing.

so try doing something like

osmosis --read-xml C:\files\input.osm --write-xml C:\files\output.osm

So now it's reading (trying to) and input file and writing an output file (.osm formatted XML) without doing anything in between (bit boring, but it should work)

Notice that I've specified paths in full. Kind of ugly perhaps. Another way of doing it would be to cd to the location where your planet files are and then specify the path to osmosis in full:

cd c:\files
C:\Progra~1\osmosis\bin\osmosis --read-xml input.osm --write-xml output.osm

Still pretty ugly perhaps, but you could put this in another bat file alongside your OSM files (a bat file calling a bat file) Command line params appearing after the word osmosis are fed through to the bat file in your osmosis installation and I think little '%*' at the very end of that script, means your params (the specification of tasks etc) get fed into the osmosis java code.

permanent link

answered 07 Jun '11, 18:58

Harry%20Wood's gravatar image

Harry Wood
9.5k2588128
accept rate: 14%

edited 07 Jun '11, 18:59

Brilliant! Thank Harry.

(13 Jun '11, 17:59) Nat Evatt

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

question asked: 07 Jun '11, 11:16

question was seen: 4,511 times

last updated: 01 Dec '16, 19:23

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