.create(noData, noData), NumberRange
.create(noData, noData));
}
for (int i = 0; i < numBands; i++) {
final ColorInterpretation colorInterpretation=TypeMap.getColorInterpretation(cm, i);
if(colorInterpretation==null)
throw new IOException("Unrecognized sample dimension type");
Category[] categories = null;
if (nan!=null){
categories = new Category[]{nan};
}
bands[i] = new GridSampleDimension(colorInterpretation.name(),categories,null).geophysics(true);
}
// creating coverage
if (raster2Model != null) {
return coverageFactory.create(coverageName, image, crs,
raster2Model, bands, null, null);