if (g2w != null || rasterArea != null || g2w != null) {
final ParameterValue<GridGeometry2D> readParameter = AbstractGridFormat.READ_GRIDGEOMETRY2D
.createValue();
if (g2w == null) {
if (rasterArea == null) {
Info info = getInfo(null );
readParameter.setValue(new GridGeometry2D(
info.getGeometry().getGridRange2D(),
new ReferencedEnvelope(bbox)));
} else {
readParameter.setValue(new GridGeometry2D(
new GridEnvelope2D(rasterArea),
new ReferencedEnvelope(bbox)));