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? |
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
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:
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. Brilliant! Thank Harry.
(13 Jun '11, 17:59)
Nat Evatt
|
osmosis is a bat file itself so call it with a CALL command to prevent closing after execution.
|