Java bindings

The GDAL project has SWIG generated Java bindings for GDAL and OGR.

Generally speaking the classes and methods mostly match those of the GDAL and OGR C++ classes. You can find the ​Javadoc of the API of the Java bindings for GDAL 1.7.0 and later releases.

Due to the fact the Java garbage collector works in a separate thread from the main thread, it is necessary to configure GDAL with multi-threading support, even if you do not use GDAL API from several Java threads.

The minimum version of Java required to build the Java bindings is Java 7

Maven Users

The Java bindings are available from the ​`Maven Central <http://search.maven.org/>`__ repository. All that is needed is to declare a dependency.

<dependency>
   <groupId>org.gdal</groupId>
   <artifactId>gdal</artifactId>
   <version>1.11.2</version>
</dependency>