//}
} else {
final CoverageInfo cinfo = requestedLayers[i].getCoverage();
final AbstractGridCoverage2DReader reader=(AbstractGridCoverage2DReader) cinfo.getGridCoverageReader(new NullProgressListener(),GeoTools.getDefaultHints());
final ParameterValueGroup params = reader.getFormat().getReadParameters();
final GeneralParameterValue[] parameters = CoverageUtils.getParameters(params, requestedLayers[i].getCoverage().getParameters(),true);
//get the original grid geometry
final GridGeometry2D coverageGeometry=(GridGeometry2D) cinfo.getGrid();
// set the requested position in model space for this request
final Coordinate middle = pixelToWorld(x, y, bbox, width, height);