[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [udig-devel] Any recent changes to WorldImageReader? | 
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.
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.find 
Resource(Unknown Source)
	at
net.refractions.udig.catalog.internal.worldimage.WorldImageGeoResource 
Impl$IGeoResourceWorldImageInfo.getBounds(Unknown Source)
	at
net.refractions.udig.catalog.internal.worldimage.WorldImageGeoResource 
Impl$IGeoResourceWorldImageInfo.<init>(Unknown Source)
	at
net.refractions.udig.catalog.internal.worldimage.WorldImageGeoResource 
Impl.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