interpolation, readerBgColor);
final GridCoverageRenderer gcr = new GridCoverageRenderer(mapEnvelope.getCoordinateReferenceSystem(), mapEnvelope,
mapRasterArea, worldToScreen, interpolationHints);
gcr.setAdvancedProjectionHandlingEnabled(true);
gcr.setWrapEnabled(DefaultWebMapService.isContinuousMapWrappingEnabled());
image = gcr.renderImage(reader, readParameters, symbolizer, interpolation,
mapContent.getBgColor(), tileSizeX, tileSizeY);
if (image == null) {
// we're outside of the coverage definition area, return an empty space
image = createBkgImage(mapWidth, mapHeight, bgColor, null);
}