Hello all
The recent work on GeoTIFF file format has been merged to trunk. It
currently reads only metadata and Coordinate Reference System (CRS).
This can be tested after a Maven build like below:
java -jar target/binaries/sis-console-0.8-SNAPSHOT.jar metadata <path to a
TIFF file>
The coordinate reference system can be shown in WKT 2 format like below:
java -jar target/binaries/sis-console-0.8-SNAPSHOT.jar crs <path to a TIFF
file>
Note that above output may differ from GDAL output not only in the
format used (GDAL uses WKT 1), but also in the meaning since Apache SIS
and GDAL have different referencing engines. I'm interested in
discrepancy reports.
One characteristic of Apache SIS implementation is that it performs some
verifications and reports warnings about inconsistencies found. For
example running the command on a TIFF file related to the Sentinel
program, I got:
WARNING: The file defines “Ellipsoid” with value EPSG:4326, but that value
should be EPSG:7030 according parent definition (EPSG:6326).
WARNING: The file defines “InvFlattening” with value 298.2572235604902, but
that value should be 298.257223563 according parent definition (EPSG:7030).
The first warning in particular shows that EPSG codes has been confused
in that GeoTIFF file, which may have annoying consequences. In our
experience, it happen often that CRS definitions in GeoTIFF files has
some issues.
Martin