Uploaded image for project: 'GeoTools'
  1. GeoTools
  2. GEOT-5525

ImagePyramid may compute wrong level index when dealing with expanded envelope

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 15.1
    • Fix Version/s: 15.2
    • Component/s: None
    • Labels:
      None

      Description

      The imagePyramid reader extracts the requested GridGeometry and stores the requested grid range (a Rectangle in raster coordinates x,y,w,h).
      Afterwards in the code, it intersects the original Envelope with the requested Envelope.
      Then it computes the requested resolution on top of the updated requested Envelope and the previously stored requested raster size.
      This may result into getting a wrong resolution since the requested raster size has not be updated accordingly.

      However, all these checks are already performed by the underlying imageMosaicReader so we should simply compute the imageChoice (need to retrieve which level = which imageMosaicReader) and delegate everything to it.

        Attachments

          Activity

            People

            • Assignee:
              dany111 Daniele Romagnoli
              Reporter:
              dany111 Daniele Romagnoli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: