[udig-devel] feedback on grid coverage renderer support on trunk
Jody Garnett
jgarnett at refractions.net
Mon Dec 4 17:46:33 PST 2006
Thanks to both Simone and Jesse for help ...
It seems that a few wrinkles are left:
#1 grid coverage renderer will only work if another renderer has caused
JAI to load jpeg support first ... if not the following error occurs:
> Caused by: java.lang.IllegalArgumentException: ImageRead: No
> OperationDescriptor is registered in the current operation registry
> under this name.
> at javax.media.jai.JAI.createNS(JAI.java:1074)
> at javax.media.jai.JAI.create(JAI.java:977)
> at
> org.geotools.gce.image.WorldImageReader.read(WorldImageReader.java:500)
> at
> net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.findResource(AbstractRasterGeoResource.java:117)
#2 geotiff has changed it's contract with applications:
> 4-Dec-2006 5:27:23 PM org.geotools.gce.geotiff.GeoTiffFormat accepts
> WARNING: GeoKey directory does not exist
> java.lang.UnsupportedOperationException: GeoKey directory does not exist
> at
> org.geotools.gce.geotiff.IIOMetadataAdpaters.GeoTiffIIOMetadataDecoder.<init>(GeoTiffIIOMetadataDecoder.java:109)
> at
> org.geotools.gce.geotiff.GeoTiffFormat.accepts(GeoTiffFormat.java:160)
> at
> net.refractions.udig.catalog.internal.geotiff.GeoTiffServiceExtension.canProcess(GeoTiffServiceExtension.java:116)
I can confirm that JAI does work - In my world wind tile accessor I make
direct use of JAI like this:
To repeat this error vanishes after something else smacks JAI once -
something else looks like this (from world wind tile accessor):
> ImageReader jpeg =
> ImageIO.getImageReadersByFormatName("jpeg").next();
>
> jpeg.setInput( input, true );
> return jpeg.read(0,null);
Simone I have committed a refresh of the tile code onto geotools trunk
for you to look at and or/review.
Jody
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc.jpg
Type: image/jpeg
Size: 190997 bytes
Desc: not available
Url : http://lists.refractions.net/pipermail/udig-devel/attachments/20061204/4d8d9cc3/gc-0001.jpg
More information about the udig-devel
mailing list