// now create the crop grid to world which can be used to decide
// which source area we need to crop in the selected level taking
// into account the scale factors imposed by the selection of this
// level together with the base level grid to world transformation
final MathTransform2D cropGridToWorldCorner = (MathTransform2D) ProjectiveTransform
.create(selectedlevel.gridToWorldTransform);
final MathTransform2D cropWorldToGrid = cropGridToWorldCorner.inverse();
// computing the crop source area which leaves straight into the
// selected level raster space, NOTICE that at the end we need to
// take into account the fact that we might also decimate therefore
// we cannot just use the crop grid to world but we need to correct