How can I write a GEOTIFF in Java?
-
02-10-2019 - |
Question
I want to write a GEOTIFF, with all the geographic metadata in Java. Which library etc. works best for this purpose?
Solution
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
OTHER TIPS
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.
check out geotools geotiffwriter: http://docs.geotools.org/stable/javadocs/org/geotools/gce/geotiff/GeoTiffWriter.html