Skip to content
Osmosis is a command line Java application for processing OSM data.
Java PLpgSQL Other
Latest commit f840f6f Jun 19, 2016 @brettch brettch committed on GitHub Merge pull request #5 from brettch/string-literals-should-not-be-dupl…
…icated-fix-1

squid:S1192 - String literals should not be duplicated
Failed to load latest commit information.
build-support docker: Fix build image to use current uid/gid instead of hard-coded … Jun 14, 2016
gradle/wrapper build: Upgrade to gradle 2.4 Jun 3, 2015
osmosis-apidb Fix checkstyle issues resulting from string deduplication Jun 19, 2016
osmosis-areafilter area-filter: Utilise AutoCloseable for resource handling Jan 17, 2015
osmosis-core Merge branch 'autoclose' Jun 1, 2016
osmosis-dataset Fix checkstyle issues Jun 4, 2015
osmosis-extract db: Point all tests at docker db server Jun 11, 2016
osmosis-hstore-jdbc squid:S1149 - Synchronized classes Vector, Hashtable, Stack and Strin… Jun 3, 2016
osmosis-osm-binary osm-binary: Upgrade to protobuf 2.6.0 Oct 1, 2014
osmosis-pbf Modify Closeable to align with JDK 1.7 AutoCloseable Apr 17, 2014
osmosis-pbf2 Modify Closeable to align with JDK 1.7 AutoCloseable Apr 17, 2014
osmosis-pgsimple db: Point all tests at docker db server Jun 11, 2016
osmosis-pgsnapshot db: Point all tests at docker db server Jun 11, 2016
osmosis-replication-http Merge branch 'autoclose' Jun 1, 2016
osmosis-replication Merge branch 'master' into autoclose Jun 3, 2015
osmosis-set Merge branch 'master' into autoclose Jun 3, 2015
osmosis-tagfilter Modify Closeable to align with JDK 1.7 AutoCloseable Apr 17, 2014
osmosis-tagtransform Modify Closeable to align with JDK 1.7 AutoCloseable Apr 17, 2014
osmosis-testutil Modify Closeable to align with JDK 1.7 AutoCloseable Apr 17, 2014
osmosis-xml Merge branch 'autoclose' Jun 1, 2016
package Update changes.txt based on recent activity May 27, 2016
.gitignore ide: Exclude IntelliJ build directory Nov 2, 2015
.travis.yml build: Enable Travis CI Jun 14, 2016
README.md build: Add Travis build status icon to project readme Jun 14, 2016
build.gradle Update source compatibility to 1.7 May 27, 2016
docker.sh docker: Allow non-interactive builds to be run via docker Jun 11, 2016
gradle.properties replication-http: Upgrade to latest version of Netty Oct 29, 2015
gradlew Upgrade to gradle 1.4 Mar 24, 2013
gradlew.bat Add gradle wrapper Nov 11, 2012
settings.gradle db-server: Move docker db server under build-support/docker Jun 11, 2016

README.md

Osmosis

Build Status

Overview

Osmosis is a command line Java application for processing Open Street Map (http://www.openstreetmap.org) data.

The tool consists of a series of pluggable components that can be chained together to perform a larger operation. For example, it has components for reading from database and from file, components for writing to database and to file, components for deriving and applying change sets to data sources, components for sorting data, etc. It has been written so that it is easy to add new features without re-writing common tasks such as file or database handling.

Some brief build, running and installation notes are provided below, however most documentation may be found on the project wiki page. http://wiki.openstreetmap.org/wiki/Osmosis

Installation

It is recommended to use a pre-built distribution archive rather than compile from source. The location of the latest builds are specified on the project wiki. These archives may be extracted to a location of your choice. The bin sub-directory should either be added to your PATH, or in the case of UNIX-like environments the "osmosis" script may be symlinked into an existing directory already on the PATH.

Development

The easiest way to perform a full Osmosis build is to use the docker-based development environment. If you have docker and docker-compose installed, simply run the following command to build and launch a shell with everything required to run the full build and test suite.

./docker.sh

Osmosis is built using the Gradle (http://gradle.org) built tool. Gradle itself does not need to be installed because the gradlew script will install Gradle on first usage. The only requirements are a 1.7 JDK, and an Internet connection. Note that in the docker environment all downloads will still occur and be cached in your home directory.

Below are several commands useful to build the software. All commands must be run from the root of the source tree.

Perform a complete build including unit tests: ./gradlew build

Build the software without running unit tests:

./gradlew assemble

Clean the build tree: ./gradlew clean

Generate project files to allow the project to be imported into IntelliJ.

./gradlew idea

Generate project files to allow the project to be imported into Eclipse.

./gradlew eclipse

Verify checkstyle compliance: ./gradlew checkstyleMain checkstyleTest

After completing the build process, a working Osmosis installation is contained in the package sub-directory. The Osmosis launcher scripts reside in the bin sub-directory of package. On a UNIX-like environment use the "osmosis" script, on a Windows environment use the "osmosis.bat" script.

Distribution archives in zip and tar gzipped formats are contained in the package/build/distribution directory.

Something went wrong with that request. Please try again.