[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Any recent changes to WorldImageReader?
|
Jesse Eichar ha scritto:
I've done a bunch of research into this and talked to the author of
the plugin. He tells me that it just randomly fails, something to do
with using the FileChannel. I don't really understand it. Here's the
pertinent lines.
//preparing the parameteres to read the images using a file
channel
ParameterBlockJAI readParams = new ParameterBlockJAI("ImageRead",
"rendered");
If someone has ideas that'd be great.
Let's try to dig a little deeper. Here we have a constructor that calls
another constructor:
at javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:208)
at javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:250)
The ParameterBlockJAI javadoc (at
javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:208)
at javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:250)
says that that exception is thrown when one of the two arguments of the
second constructor is null.
I guess this happens because the "ImageRead" operation cannot be
converted to and OperationDescription
using the current JAI OperationRegistry.
Since ImageRead is one of the "JAI ImageIO" built-in operations, it
seems there is some problem in the JAI
ImageIO installation (which is a separate download, it's not JAI itself).
It may also be due a classloading problem. See these messages on
java.net, for example
http://forums.java.net/jive/thread.jspa?threadID=13500&tstart=0
Sorry, I don't have time to investigate this more in deep.
Cheers
Andrea Aime
Jesse
On 25-Mar-06, at 3:58 AM, Adrian Custer wrote:
Hey all,
code that was working last week now doesn't. Did someone change the code
in WorldImageReader recently that would explain this?
My code is attached as: GridPtLayerOp.java
The three generated files are attached as gridfile.*
When the gridfiles are added to a running uDig (e.g. by drag-and-drop),
I get an error message in the log that begins:
!ENTRY net.refractions.udig.catalog 2 0 2006-03-25 12:48:10.736
!MESSAGE !WorldImageGeoResource.error.layer.bounds!
!STACK 0
java.lang.IllegalArgumentException: The input argument(s) may not be
null.
at
javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:208)
at
javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:250)
at
org.geotools.gce.image.WorldImageReader.readSourceImage(WorldImageReader.java:464)
at
org.geotools.gce.image.WorldImageReader.read(WorldImageReader.java:301)
at
net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.findResource(Unknown
Source)
at
net.refractions.udig.catalog.internal.worldimage.WorldImageGeoResourceImpl$IGeoResourceWorldImageInfo.getBounds(Unknown
Source)
at
net.refractions.udig.catalog.internal.worldimage.WorldImageGeoResourceImpl$IGeoResourceWorldImageInfo.<init>(Unknown
Source)
at
net.refractions.udig.catalog.internal.worldimage.WorldImageGeoResourceImpl.getInfo(Unknown
Source)
at
net.refractions.udig.catalog.ui.workflow.ConnectionState.run(Unknown
Source)
Any ideas?
thanks,
adrian
<GridPtLayerOp.java>
<gridfile.pgw>
<gridfile.png>
<gridfile.prj>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel