geotrellis/geotrellis — pull request #903 by hectcastro (2014-10-03 17:35:34+00:00)
Title: Add GDAL Java bindings

Depends on https://github.com/geotrellis/geotrellis/pull/902.

This changeset adds the GDAL Java bindings through the [azavea.libgdal-java](https://github.com/azavea/ansible-libgdal-java) Ansible role. The role is added as a dependency of the `common` role, so that all nodes in the cluster contain the bindings.

In addition to adding the GDAL Java bindings, I had to make a few tweaks to the development environment to get things to work:

- Enhance `local_ip` function in the `Vagrantfile` so that it supports Linux
- Remove the `eth` variable definition from `all.yml` and add an entry to `development.yml` and `production.yml` with different defaults for each
- Expand list of `no_proxy` hosts because of issues Polipo is having trying to cache some of the Java package repositories

Tested in the Vagrant development environment with:

```
$ cd ~/geotrellis
$ ./sbt
root > project gdal
gdal > run
[info] Updating {file:/home/vagrant/geotrellis/}gdal...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://repo.boundlessgeo.com/main/org/gdal/gdal/1.10.1/gdal-1.10.1.jar ...
[info]	[SUCCESSFUL ] org.gdal#gdal;1.10.1!gdal.jar (390ms)
[info] downloading http://repo1.maven.org/maven2/com/github/scopt/scopt_2.10/3.2.0/scopt_2.10-3.2.0.jar ...
[info]	[SUCCESSFUL ] com.github.scopt#scopt_2.10;3.2.0!scopt_2.10.jar (156ms)
[info] Done updating.
[info] Running geotrellis.gdal.GdalInfo
Error: Missing argument
gdalinfo
Usage: gdalinfo [options]

--mm
Force computation of the actual min/max values for each band in the dataset.
--stats
Read and display image statistics. Force computation if no statistics are stored in an image.
--approx_stats
Read and display image statistics. Force computation if no statistics are stored in an image. However, they may be computed based on overviews or a subset of all tiles. Useful if you are in a hurry and don't want precise stats.
--hist
Report histogram information for all bands.
--nogcp
Suppress ground control points list printing. It may be useful for datasets with huge amount of GCPs, such as L1B AVHRR or HDF4 MODIS which contain thousands of them.
--noct
Suppress printing of color table.
--nomd
Suppress metadata printing. Some datasets may contain a lot of metadata strings.
--norat
Suppress printing of raster attribute table.
--checksum
Force computation of the checksum for each band in the dataset.
--mdd
Report metadata for the specified domain. Starting with GDAL 2.0, 'all' can be used to report metadata in all domains.

Path to a GDAL supported raster dataset.
[success] Total time: 4 s, completed Oct 3, 2014 5:32:38 PM
```

Resolves: https://github.com/geotrellis/geotrellis/issues/901