GridCoverage2D c = (GridCoverage2D) processor.doOperation(paramResampling);
// first shifted
ReferencedEnvelope re2 = new ReferencedEnvelope(-540, -180, -85, 85,
DefaultGeographicCRS.WGS84);
GridCoverage2D c2 = new GridCoverageFactory()
.create(c.getName(), c.getRenderedImage(), re2);
// second shifted
ReferencedEnvelope re3 = new ReferencedEnvelope(180, 540, -85, 85,
DefaultGeographicCRS.WGS84);
GridCoverage2D c3 = new GridCoverageFactory()
.create(c.getName(), c.getRenderedImage(), re3);
// third shifted
ReferencedEnvelope re4 = new ReferencedEnvelope(-540, -900, -85, 85,
DefaultGeographicCRS.WGS84);
GridCoverage2D c4 = new GridCoverageFactory()
.create(c.getName(), c.getRenderedImage(), re4);
ReferencedEnvelope reUnion = new ReferencedEnvelope(-900, 540, -85, 85,
DefaultGeographicCRS.WGS84);
List<GridCoverage2D> sorted = sortCoverages(Arrays.asList(c4, c2, c, c3));