[JAI] Problem with ImagePyramid running slowly - Can you help ?
I'm writing an application using the JAI which displays map images. In
brief I take four 5000 x 5000 TIFF map tiles and combine them together
to form a mosaic. The 10000 x 10000 RenderedOp result of this is then
put into a ImagePyramid so the level 0 output is a 10000 x 10000
RenderedOp , level 1 is a 8100 x 8100 RenderedOp , level 2 is a 6561 x
6561 RenderedOp and so on. The selected RenderedOp is then displayed
in a DisplayJAI component.
I have no problems when the user views the maps at the higher
resolution rates such as levels 0,1 and 2. When called the
ImagePyramid creates the required RenderedOp quickly and the user can
smoothly scroll around the window displaying it. However at the lower
resolution rates from levels 3 upwards the program can take 10 seconds
or more to create the RenderedOp required and resulting map takes ages
to to scroll about the screen. Now I can understand why the
ImagePyramid might take so long to create these images due to the work
required but can anyone explain why they take so long to display and
how I could improve this ? This is the first time I have used the JAI
and the first time I have written a program that displays such large
graphic files so I'm quite likely making a very basic error here.
Oh and I have set the TileCache to 512MB so that shouldn't be the problem.
Please let me know if you need more information.
Thanks for your time