@Override
public ImageLayout getImageLayout(String coverageName) throws IOException {
coverageName = checkUnspecifiedCoverage(coverageName);
try {
final CoverageSource source = getGridCoverageSource(coverageName);
VariableAdapter.UnidataSpatialDomain spatialDomain = (UnidataSpatialDomain) source.getSpatialDomain();
GridEnvelope2D gridRange = spatialDomain.getGridGeometry().getGridRange2D();
RasterLayout rasterElement = spatialDomain.getRasterElements(false, null).iterator().next();
SampleModel sampleModel = new BandedSampleModel(DataBuffer.TYPE_DOUBLE, (int)gridRange.getWidth(), (int)gridRange.getHeight(), 1);
ColorModel colorModel = ImageIOUtilities.createColorModel(sampleModel);
Rectangle rect = rasterElement.toRectangle();