02_osmosis_quick install (windows) - openstreetmap wiki

2
Osmosis/Quick Install (Windows) - OpenStreetMap Wiki http://wiki.openstreetmap.org/wiki/Osmosis/Quick_Install_(Windows)[2015-04-14 오전 11:04:43] Osmosis/Quick Install (Windows) < Osmosis Osmosis windows installation is quite straightforward and similar in many ways to Osmosis/Installation on other operating systems. You need Java (specifically Java Runtime Environment) to be able to run osmosis. If you don't have it (check here if you're not sure), you can download JRE from java.com/en/download . After the download completes, double-click the downloaded installer and follow the instructions. Download the latest osmosis runtime zip file from http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.zip (DOWNLOAD) . You'll need to put it where you can unzip/edit it (eg your desktop) Unzip the downloaded file. You don't need the outer directory (osmosis-latest), and you may find it simpler to remove the version number from the next-level directory. Put the directory somewhere appropriate (eg C:\Program Files (x86)\) Create a text file with a .BAT extension (probably somewhere in your user space) containing something like: "C:\Program Files (x86)\osmosis\bin\osmosis.bat" (the quotes are necessary because there are spaces in the directory name; the .bat isn't required, it's just there for clarity) You can run this by double-clicking on the file, but you may well find that the window closes before you can see what's happened. In which case, create a shortcut to the file, open its Properties, and on the Shortcut tab insert cmd /k at the beginning of the Target. This runs it in a window that stays open. The output should look very similar to this: Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.40.1 Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Launching pipeline execution. Apr 23, 2012 3:20:31 PM Page Discussion Read View source View history site Main Page The map Map Features Contributors Help Blogs Shop Donations Recent changes Tools What links here Related changes Special pages Printable version Permanent link Page information Cite this page Create account Log in

Upload: coolykh2u

Post on 21-Dec-2015

11 views

Category:

Documents


0 download

DESCRIPTION

guide installation of osmosis on windows

TRANSCRIPT

Page 1: 02_Osmosis_Quick Install (Windows) - OpenStreetMap Wiki

Osmosis/Quick Install (Windows) - OpenStreetMap Wiki

http://wiki.openstreetmap.org/wiki/Osmosis/Quick_Install_(Windows)[2015-04-14 오전 11:04:43]

Osmosis/Quick Install (Windows)< Osmosis

Osmosis windows installation is quite straightforward and similar in many ways to Osmosis/Installation on other operating systems.

You need Java (specifically Java Runtime Environment) to be able to run osmosis. If you don't have it (check here if you're not sure), you can download JRE from java.com/en/download . After the download completes, double-click the downloaded installer and follow the instructions.

Download the latest osmosis runtime zip file from http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-latest.zip (DOWNLOAD) . You'll need to put it where you can unzip/edit it (eg your desktop)

Unzip the downloaded file. You don't need the outer directory (osmosis-latest), and you may find it simpler to remove the version number from the next-level directory. Put the directory somewhere appropriate (eg C:\Program Files (x86)\)

Create a text file with a .BAT extension (probably somewhere in your user space) containing something like:

"C:\Program Files (x86)\osmosis\bin\osmosis.bat"

(the quotes are necessary because there are spaces in the directory name; the .bat isn't required, it's just there for clarity)

You can run this by double-clicking on the file, but you may well find that the window closes before you can see what's happened. In which case, create a shortcut to the file, open its Properties, and on the Shortcut tab insert cmd /k at the beginning of the Target. This runs it in a window that stays open.

The output should look very similar to this:

Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis runINFO: Osmosis Version 0.40.1Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis runINFO: Preparing pipeline.Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis runINFO: Launching pipeline execution.Apr 23, 2012 3:20:31 PM

Page Discussion Read View source View history

site

Main PageThe mapMap FeaturesContributorsHelpBlogsShopDonationsRecent changes

Tools

What links hereRelated changesSpecial pagesPrintable versionPermanent linkPage informationCite this page

Create account Log in

Page 2: 02_Osmosis_Quick Install (Windows) - OpenStreetMap Wiki

Osmosis/Quick Install (Windows) - OpenStreetMap Wiki

http://wiki.openstreetmap.org/wiki/Osmosis/Quick_Install_(Windows)[2015-04-14 오전 11:04:43]

Privacy policy About OpenStreetMap Wiki Disclaimers

This page was last modified on 26 January 2015, at 21:22.

Content is available under Creative Commons Attribution-ShareAlike 2.0 license unless otherwise noted.

org.openstreetmap.osmosis.core.Osmosis runINFO: Pipeline executing, waiting for completion.Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis runINFO: Pipeline complete.Apr 23, 2012 3:20:31 PM org.openstreetmap.osmosis.core.Osmosis runINFO: Total execution time: 387 milliseconds.

You're set. Osmosis works. Head on over to Osmosis#Example_Usage for some basic usage examples. The full reference documentation is here.

Troubleshooting

Osmosis may well need to be told where to find java.

Find the java application (exe file) - it's probably in C:\Program Files (x86)\Java\jre6\bin\.Edit C:\Program Files (x86)\osmosis\bin\osmosis.batFind the line about 3/4 of the way down that sets JAVACMD and change it to:

IF "%JAVACMD%"=="" set JAVACMD="C:\Program Files (x86)\Java\jre7\bin\java"

You may also have to change the line near the end that sets EXEC and put double quotes before and after %JAVACMD%

Help

Not working? Search for a solution to your problem . You can also Contact the community in various ways to ask for help. If you choose to ask a new question on http://help.openstreetmap.org be sure to search first, and be sure to mention that you are using Osmosis on Windows.