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 should have been updated accordingly to the reduced requested envelope. |