> Simone Giannecchini a écrit :
>
>>> Error while parsing JAI registry file
>>> "/usr/local/src/geotools/branch-2.3.x/module/coverage/target/classes/META-INF/registryFile.jai"
>>>
>>>
>>> Error in registry file at line number #31
>>> A descriptor is already registered against the name
>>> "org.geotools.Combine" under registry mode "rendered"
>>>
>
> Maybe you have two gt2-coverage.jar files in your classpath? An old JAR and
> the
> new one that you just compiled from SVN?
>
> Martin
>
Hmm, should have thought about that myself... :) For some reason,
eclipse included the loaded gt-2.3.0 projects as well as the maven2 repo
gt-2.4.0 libraries... Or probably I ignorantly told eclipse to do so
because I'm not (yet) really used to working with eclipse and it's
pretty complex, especially when working with large sets of projects like
geotools, combined with maven... Well, cleaned that one up.
Now for the actual error, which had not disappeared after that: I found
out what the problem is.
When having a mosaic with holes (like the srtm elevation data, which is
only defined for tiles that include land masses), the pyramidbuilder
plugin wants to build pyramids also for the undefined tiles in the
mosaic. When entering such a tile for processing, the mosaicreader
cannot get at the raster source (which is undefined, of course) and
returns with a null pointer. Ecco, the nullpointer exception.
As an illustration I have included part of the output for the
pyramidBuilder when processing a smaller mosaic. The mosaic is only one
North-South line of srtm tiles, but the part from 20 degrees north till
40 degrees north is missing (sea). The pyramidBuilder starts building
from the most southern tile (not included in the output paste) and
continues till it reaches 20 degrees north. Then it tries to build a
pyramid for data starting at 20 degrees north, which obviously isn't
there, which results in the error.
paste of the output (don't be fooled by the fact that the exception is
printed before the actual notification, I double checked it and it
really occurs at getting the renderedImage from the input gc):
attached message is: Reading with grid envelope [70°00.0'W 10°00.0'N ,
65°00.0'W 15°00.0'N]
Oct 23, 2006 11:43:23 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Scaling...
Oct 23, 2006 11:43:23 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.5833333333333334
attached message is: Writing out...
Oct 23, 2006 11:43:37 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.625
attached message is: Preparing tile (col,row)==(0,15) to file
/mnt/amalia/srtm3/geotools_mosaic_test/2/mosaic_15.tiff
Oct 23, 2006 11:43:37 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.625
attached message is: Reading with grid envelope [70°00.0'W 15°00.0'N ,
65°00.0'W 20°00.0'N]
Oct 23, 2006 11:43:37 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Scaling...
Oct 23, 2006 11:43:37 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.625
attached message is: Writing out...
Exception in thread "PyramidBuilder" java.lang.NullPointerException
at
org.geotools.coverage.processing.operation.ScaledGridCoverage2D.create(ScaledGridCoverage2D.java:91)
at
org.geotools.coverage.processing.operation.Scale.doOperation(Scale.java:149)
at
it.geosolutions.utils.imagepyramid.PyramidBuilder.run(PyramidBuilder.java:679)
at java.lang.Thread.run(Thread.java:595)
Oct 23, 2006 11:43:45 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.6666666666666666
attached message is: Preparing tile (col,row)==(0,16) to file
/mnt/amalia/srtm3/geotools_mosaic_test/2/mosaic_16.tiff
Oct 23, 2006 11:43:45 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.6666666666666666
attached message is: Reading with grid envelope [70°00.0'W 20°00.0'N ,
65°00.0'W 25°00.0'N]
Oct 23, 2006 11:43:45 AM
it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Scaling...
Cheers,
Vincent.
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geoserver-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel