I want to write a GEOTIFF, with all the geographic metadata in Java. Which library etc. works best for this purpose?
-
1Although I've provided my own scraping-the-bottom-of-the-barrel solution, there must be a better way that is pure Java? As well as being complicated and potentially difficult to maintain, my solution would require a recompile for each platform. – winwaed Nov 04 '10 at 12:38
4 Answers
GeoTIFF-JAI should be able to do this:
http://sourceforge.net/projects/geotiff-jai/
GeoTIFF-AI incorporates Extensible-TIFF-JAI, which is an extensible codec allowing tiled images, etc.
There's also a GeoTIFF metadata adapter for Java ImageIO at:
www.gelbin.org/code/
and the NetCDF library also includes a GeoTIFF writer, documented at:
www.unidata.ucar.edu/software/netcdf-java/v4.0/javadocAll/ucar/nc2/geotiff/GeotiffWriter.html

- 7,645
- 6
- 36
- 81
-
1It looks like GeoTIFF-JAI hasn't been updated in well over a year, but the others look like they will be more useful. – winwaed Nov 04 '10 at 20:53
check out geotools geotiffwriter: http://docs.geotools.org/stable/javadocs/org/geotools/gce/geotiff/GeoTiffWriter.html

- 2,940
- 1
- 22
- 46
This isn't an ideal solution but as no one else has replied in two months...
libgeotiff is a pretty good open source C++ library that I have successfully used in production code to read geotiff meta data. This could be used in Java with a bridge.

- 7,645
- 6
- 36
- 81
Apache Commons Imaging offers a pure Java-based TiFF image manipulation. I came across by following this question in GIS-Stack-Exchange. It offers a range of functionalities to manipulate GeoTiFF.

- 416
- 5
- 16