Continuing the WCS testing saga...
We have a bunch of srtm raster data here and I thought that might be nice for some coverage mosaic testing... Creating the mosaic went OK using the mosaicIndexBuilder from geotools/ext/coverage-development. However, when trying to create pyramids for this mosaics, the pyramidbuilder gives an error:
Oct 20, 2006 3:12:43 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Requested scale factor is 2
Oct 20, 2006 3:12:43 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Acquiring a mosaic reader to mosaic /mnt/amalia/srtm3/SRTM_Data_GeoTiff/srtm3_mosaic.shp
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"
Error in registry file at line number #32
A descriptor is already registered against the name "org.geotools.Hysteresis" under registry mode "rendered"
Error in registry file at line number #33
A descriptor is already registered against the name "org.geotools.NodataFilter" under registry mode "rendered"
Oct 20, 2006 3:12:46 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Original envelope is [180°00.0'W 60°00.0'S , 180°00.0'E 60°00.0'N]
Oct 20, 2006 3:12:46 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Original range is GeneralGridRange[0..432000, 0..144000]
Oct 20, 2006 3:12:46 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: New dimension is (W,H)==(216000.0,72000.0)
Oct 20, 2006 3:12:46 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: New matrix dimension is (cols,rows)==(72,24)
Oct 20, 2006 3:12:46 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Preparing tile (col,row)==(0,0) to file /mnt/amalia/srtm3/SRTM_Data_GeoTiff/2/mosaic_0.tiff
Oct 20, 2006 3:12:46 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Reading with grid envelope [180°00.0'W 60°00.0'S , 175°00.0'W 55°00.0'S]
Oct 20, 2006 3:12:46 PM it.geosolutions.utils.imagepyramid.PyramidBuilder getNotification
INFO: Progress is at 0.0
attached message is: Scaling...
Exception in thread "PyramidBuilder" java.lang.NullPointerException
at org.geotools.coverage.processing.operation.ScaledGridCoverage2D.create(ScaledGridCoverage2D.java:88)
at org.geotools.coverage.processing.operation.Scale.doOperation(Scale.java:148)
at it.geosolutions.utils.imagepyramid.PyramidBuilder.run(PyramidBuilder.java:679)
at java.lang.Thread.run(Thread.java:595)
This is using geotools 2.3 branch from today's svn. JAI and JAI-IO are from cvs couple of days ago.
This error is independent from 1) tile size (tried 500, 1000 and 3000) and 2) scaling algorithm (tried nn, avg, bil).
Now this is a pretty large mosaic, so maybe that is a problem? Earlier I tried running the pyramidBuilder on a subset, and that mostly went OK (not always, but alas the errors were erratic and not reproduceable). I'll start some testing on smaller mosaics, but in the mean time want to ask:
- should the pyramidBuilder be able to handle mosaics this large?
- any idea what could be the problem?
side note questions:
- is it also possible to achieve the same performance by adding internal overviews to the original mosaic tiles? Or will pyramids outperform internal overviews?
- and if I use internal overviews, will the imagemosaic plugin automatically use these when a lower resolution image is requested?
Cheers,
Vincent.