[geotk] Reading and displaying tif file in geotoolkit

Martin Desruisseaux martin.desruisseaux at geomatys.fr
Mon Jan 2 10:52:03 EST 2012


Hello Trond

I'm not sure if this is the cause, but there is a particular issue with the TIFF 
format to consider. Experience suggests that on some platforms, new codecs 
appear magically after an AWT window has been created, especially the "Standard 
TIFF image reader". This is independant of Geotk. For graphical applications, we 
recommend to invoke the following methods, in that order, after the Window has 
been created but before it is made visible (It is okay to invoke those methods 
more than once):

org.geotoolkit.image.jai. setDefaultCodecPreferences();
org.geotoolkit.image.io.plugin.WorldFileImageReader.Spi.registerDefaults(ServiceRegistry);

The idea is to make sure that the "Standard TIFF image reader" is registered 
before to invoke the above initialization methods. Does it help?

> A related questions: Does geotoolkit read the native ESRI-grid format (where 
> we have the info catalog storing the attribute values) ?
>

Johann is in better position for this question...

     Regards,

         Martin



More information about the Geotoolkit mailing list