On 10/20/06, Vincent Schut <[EMAIL PROTECTED]> wrote:
> 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 error is quite strange. It seems that JAI is not able to register
some of the custom operations that we have in geotools, which by the
way are not used by the PyramidBuilder. Can you give some details
about he platform where this is happening? Anyway the code that
actaully does this registration comes Martin Desruisseaux (he is
cc-ed) hence I would like to know what he thinks of this error.

> 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).

At FOSS06 I showed people various mosaics, one had been made from Blue
marble , the base level add 1000 images, but I had another one
covering chicago where the base level had exaclty 10.000 images. I am
builing a new one for san diego with 20.000 image so, in thery 3000
should not be that much :-).


> 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?

See above.

> - any idea what could be the problem?

See above.

> 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?

Rationale of the ImagePyramid. If you have less then 300 images of a
reasonable size (up to 100 mb) usin the ImageMosaic with embedded
overviews should be fine. Beyond that it won't work ebcause you might
try to open too many files at the same time having problems very
quickly on some platforms. Pyramids are there to reduce not only the
resoulution but also the number of files to be used. Moreover you
avoid seeking into a big file and you get more parallelism.

> - and if I use internal overviews, will the imagemosaic plugin
> automatically use these when a lower resolution image is requested?

Yeah, I fixed a bug in the mosaic plugin just three days ago that was
giving strange results depending on the resolution. Now it work
perfectly (well, fine is probably better because it generates less
expectations :-) ).
>
> Cheers,
> Vincent.
>


Ciao,
Simone.
> -------------------------------------------------------------------------
> 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
>


-- 
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions

http://www.geo-solutions.it

-------------------------------------------------------

-------------------------------------------------------------------------
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

Reply via email to