requestedCRS, width, height, bbox, ff, results, i, layer, rules, maxFeatures);
} else if (layer.getType() == MapLayerInfo.TYPE_RASTER) {
final CoverageInfo cinfo = requestedLayers.get(i).getCoverage();
final AbstractGridCoverage2DReader reader = (AbstractGridCoverage2DReader) cinfo
.getGridCoverageReader(new NullProgressListener(),
GeoTools.getDefaultHints());
// get the original grid geometry
final GridGeometry2D coverageGeometry = (GridGeometry2D) cinfo.getGrid();