Adrian Custer ha scritto:
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?
This error is not new, I've seen it around other times. Just a guess,
try to generate images that don't require
a datum change (from NAD83 to WGS84) and see if the error occurs again.
An alternative way is to set the
map projection to NAD83 zone 37N before adding the layer to the map
(i.e., try to avoid the on the fly reprojection).
If not, then maybe the epsg-wkt plugin property file does not contain
theh datum conversion parameters from
NAD83 to WGS84 (look in the property file and see if the "towgs84"
parameters are available for NAD83).
I'm definitely guessing, don't know if this is the real problem. Hope
this helps
Best regards
Andrea Aime
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel