} else {
image = sampleCoverage.getRenderedImage();
}
GridSampleDimension[] sampleDimensions = dims.toArray(new GridSampleDimension[dims.size()]);
GridCoverage2D mergedCoverage = coverageFactory.create(coverageInfo.getName(), image, sampleCoverage.getGridGeometry(), sampleDimensions, null, null);
return new GridCoverageWrapper(coverageInfo.getName(), mergedCoverage, sampleDimensions, mergedCoverage.getProperties());
}