|
The AbstractGridCoverage2DReader.getReadingResolutions method has this piece of code:
... int imageIdx = pickOverviewLevel(coverageName, policy, requestedResolution); result = overViewResolutions[imageIdx]; ...
However, note that imageIdx are zero based where "0" means the native resolution and "1" means the first overview.
Therefore the first overview (having index = 1) resolution should be taken from the element 0 of the overviewResolutions array.
And that piece of code should be changed like this:
.... int imageIdx = pickOverviewLevel(coverageName, policy, requestedResolution); result = imageIdx > 0 ? overViewResolutions[imageIdx - 1] : highestRes; ....
|