Re: [osmosis-dev] How to merge 2 osm files
On Sun, Jul 25, 2010 at 3:23 AM, Sam Vekemans acrosscanadatra...@gmail.comwrote: cool, to start, the .bat file was actually in the sub directory called 'bin', i was expecting it to be in the root directory, instead of the .jar file which maybe should be in a sub folder? That is where the batch file should be. That's not a problem. i looked in the .bat file and i couldnt figure out what to replace. i'm not familar with the % syntax used. I can't help you until you tell me what error you're encountering :-) i'll move the .bat file over to the root directory, along with the .osm files and what should these files be named in order for it to merge to a single output.osm file? Moving the .bat file is not necessary. Neither is moving the .osm files. The .osm files can be called whatever you like so the names aren't important. If you provide the full command line that you're typing, along with the entire output of the Osmosis command I may be able to assist. Brett ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev
Re: [osmosis-dev] How to merge 2 osm files
Hello, I suspect that his problem is a path problem. This is something I solved by fixing the batch file so it works for me by including the path in it instead of relying on the logic found in the file. I have seen it in the past but never got my head around writing a patch to solve that batch issue. His issue is that the libraries patch cannot be found which is done by using the osmosis.bat on Windows. Emilie Laffray ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev
Re: [osmosis-dev] How to merge 2 osm files
Hi Sam, On Tue, Jul 20, 2010 at 6:09 AM, Sam Vekemans acrosscanadatra...@gmail.comwrote: Hi there, I was wondering how i can use osmosis to merge 2 osm files. I use Windows XP and want to use the command line for it. My guess is this osmosis --rx file2.osm --rx file1.osm --m --wx merged.osm That looks correct. Yet it does not work on my computer. Why? What is going wrong? Are you seeing an error? Are you getting an unexpected result file? When preforming this task, i need to make file1.osm and file2.osm in the 'osmosis' directory. Perhaps i need to use java -jar osmosis.jar --rx file2.osm --rx file1.osm --m --wx merged.osm java -jar won't work. You definitely need to use the osmosis.bat launcher. and i get a 'noClassDefFoundError similar to the errors in this thread http://www.mail-archive.com/newb...@openstreetmap.org/msg01252.html Unfortunatly, the wiki page tells users to download a planet.osm file. But that is just 1 function of the osmosis program, and not what im looking for. I dont have a planet.osm extract, nor a local PostgreSQL rails port database. http://wiki.openstreetmap.org/wiki/Osmosis Im just looking to take 2 .osm files and bring them into 1 .osm file. You're on the right track with the --m (also --merge) command. We just need to find out why that isn't working for you. Brett ___ osmosis-dev mailing list osmosis-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/osmosis-dev