cropEnvelope = CRS.transform(cropEnvelope, sourceCRS);
}
} catch (TransformException e) {
throw new WCS20Exception("Unable to initialize subsetting envelope",
WCS20Exception.WCS20ExceptionCode.SubsettingCrsNotSupported,
subsettingCRS.toWKT(), e);
}
GridCoverage2D cropped = WCSUtils.crop(coverage, cropEnvelope);
cropped = GridCoverageWrapper.wrapCoverage(cropped, coverage, null, null, false);
return cropped;