// GRID TO WORLD for transforming raster points into model points
mt2D= gc2d.getGridGeometry().getGridToCRS2D(PixelOrientation.UPPER_LEFT);
// BOUNDS take into account that we want to map center coordinates
rasterBounds = PlanarImage.wrapRenderedImage(raster).getBounds();
final XRectangle2D rasterBounds_=new XRectangle2D(raster.getMinX()+0.5, raster.getMinY()+0.5, raster.getWidth()-1, raster.getHeight()-1);
try {
bounds = new ReferencedEnvelope(CRS.transform(mt2D, rasterBounds_, null),
gc2d.getCoordinateReferenceSystem2D());
} catch (Exception e) {
final IOException ioe = new IOException();