ReferencedEnvelope bounds = (ReferencedEnvelope) currentContext.getImageBounds();
bounds=bounds.transform(destinationCRS, true);
GridEnvelope range=new GridEnvelope2D(0,0, mapDisplay.getWidth(), mapDisplay.getHeight() );
MathTransform displayToLayer=currentContext.worldToScreenMathTransform().inverse();
ReferencingFactoryFinder.getMathTransformFactory(null).createConcatenatedTransform(displayToLayer, currentContext.getLayer().mapToLayerTransform());
GridGeometry2D geom=new GridGeometry2D(range, displayToLayer, destinationCRS );
currentContext.setStatus(ILayer.WORKING);
setState( STARTING );