Hi All,<div><br></div><div>I'm writing a Netbeans RCP based app and had a bad time loading GeoTIFF's. After trolling through the mailing list, especially</div><div>this thread: <a href="http://lists.osgeo.org/pipermail/geotoolkit/2011-January/000466.html">http://lists.osgeo.org/pipermail/geotoolkit/2011-January/000466.html</a>, I fixed the problem by explicitly registering </div>
<div>the TIFF readers as follows:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div><div><div> private void explicitRegisterTIFF() {</div><div> ImageIO.scanForPlugins();</div>
<div> IIORegistry.getDefaultInstance().registerServiceProvider(new com.sun.media.imageioimpl.plugins.tiff.TIFFImageReaderSpi(), ImageReaderSpi.class);</div><div> IIORegistry.getDefaultInstance().registerServiceProvider(new GeoTiffImageReader.Spi("TIFF"), ImageReaderSpi.class);</div>
<div> }</div></div><div><br></div><div><br></div><div>While this works I'm concerned that it point to a deeper problem within the app. I would like the service discovery mechanism to work</div><div>as intended. Especially if I ever needed any other readers to work "out of the box".</div>
<div><br></div><div>Any thought on this ?</div><div><br></div><div>thanks and regards</div><br>-- <br>Thys Meintjes<br><br><br>
</div>