forked from openstreetmap/osmosis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Made documentation clearer for Windows and made
batch file less likely to fail
- Loading branch information
1 parent
7b6e7ba
commit c2a8a69
Showing
2 changed files
with
61 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,42 +1,50 @@ | ||
| INSTALLATION | ||
| Unzip the distribution in the location of your choice. | ||
| On unix/linux systems, make the bin/osmosis script executable (ie. chmod u+x osmosis). | ||
| If desired, create a symbolic link to the osmosis script somewhere on your path (eg. ln -s appdir/bin/osmosis ~/bin/osmosis). | ||
|
|
||
| CONFIGURATION | ||
| Common command line options can be specified in configuration files. | ||
| Firstly, if you're using a Linux system, you probably don't want to bother - just use the version of osmosis | ||
| that was packaged with your distribution and you'll probably be fine (osmosis really doesn't change very | ||
| often). | ||
|
|
||
| On Linux, the file can reside in the following locations with later files overriding earlier files: | ||
| /etc/osmosis | ||
| $HOME/.osmosis | ||
| To install, unzip the distribution in the location of your choice. | ||
|
|
||
| On Windows, the file can reside in the following locations with later files overriding earlier files: | ||
| %ALLUSERSPROFILE%\osmosis.bat | ||
| %USERPROFILE%\osmosis.bat | ||
| On Unix/Linux systems, make the bin/osmosis script executable (ie. chmod u+x osmosis). | ||
| If desired, create a symbolic link to the osmosis script somewhere on your path (eg. ln -s appdir/bin/osmosis ~/bin/osmosis). | ||
|
|
||
| The following variables can be defined in these files: | ||
| JAVACMD - The java command to be invoked. Default is "java". | ||
| JAVACMD_OPTIONS - The java jvm options to apply (eg. -Xmx512M). | ||
| OSMOSIS_OPTIONS - The osmosis options to apply (eg. -q or -plugin MyPluginLoaderClass). | ||
| On Windows, install wherever you like (but preferably not somewhere that Windows will try and control | ||
| access to such as the root directory or "Program Files"). | ||
|
|
||
| COMPILATION | ||
| To perform a complete osmosis rebuild, the following command may be run from the osmosis root directory. | ||
| RUNNING ON WINDOWS | ||
| Open a command prompt and change directory to the the "bin" folder below the "osmosis-latest" | ||
| that the unzipping will have created. | ||
|
|
||
| ant all | ||
| Just type "osmosis" and press return, and you should see something like: | ||
|
|
||
| The "all" ant target performs all steps including creation of new distribution files, checkstyle analysis and unit tests. | ||
| Sep 11, 2015 4:14:25 PM org.openstreetmap.osmosis.core.Osmosis run | ||
| INFO: Osmosis Version 0.44.1 | ||
| Sep 11, 2015 4:14:25 PM org.openstreetmap.osmosis.core.Osmosis run | ||
| INFO: Preparing pipeline. | ||
| Sep 11, 2015 4:14:25 PM org.openstreetmap.osmosis.core.Osmosis run | ||
| INFO: Launching pipeline execution. | ||
| Sep 11, 2015 4:14:25 PM org.openstreetmap.osmosis.core.Osmosis run | ||
| INFO: Pipeline executing, waiting for completion. | ||
| Sep 11, 2015 4:14:25 PM org.openstreetmap.osmosis.core.Osmosis run | ||
| INFO: Pipeline complete. | ||
| Sep 11, 2015 4:14:25 PM org.openstreetmap.osmosis.core.Osmosis run | ||
| INFO: Total execution time: 552 milliseconds. | ||
|
|
||
| Sometimes old files can be left hanging around causing problems. It may be necessary to run the following command | ||
| to clean up any old files. | ||
| As an example, to use osmosis on Windows to cut a piece out of a PBF that | ||
| you have already downloaded, do something like this: | ||
|
|
||
| ant clean | ||
| osmosis --read-pbf c:\temp\osm\great-britain.osm.pbf --bounding-box left=-4.44 bottom=51.46 right=-0.78 top=54.04 --write-pbf c:\temp\osm\cut_example.pbf | ||
|
|
||
| If you wish to rebuild all artefacts without running unit tests, the following command may be used. | ||
| (specifying full paths for the input and output files helps avoid errors - | ||
| you know exactly where the files are) | ||
|
|
||
| ant publish | ||
|
|
||
| HELP | ||
| Osmosis documentation is available at: | ||
| http://wiki.openstreetmap.org/index.php/Osmosis | ||
| Some Osmosis documentation is available at: | ||
| http://wiki.openstreetmap.org/wiki/Osmosis | ||
|
|
||
| There are lots of examples there (though if you're on Windows you'll need to translate the command line | ||
| examples from Unix/Linux) | ||
|
|
||
| Please ask any questions, report any issues, or suggest enhancements using the Open Street Map talk or development mailing lists. |