}
imgBuffer = new DataBufferByte(bytes, pixels);
buffer_type = DataBuffer.TYPE_BYTE;
sampleModel = new BandedSampleModel(buffer_type,
xsize, ysize, xsize, banks, offsets);
data_type = (poBand.GetRasterColorInterpretation() ==
gdalconstConstants.GCI_PaletteIndex)?
BufferedImage.TYPE_BYTE_INDEXED : BufferedImage.TYPE_BYTE_GRAY;
} else if(buf_type == gdalconstConstants.GDT_Int16) {
short[][] shorts = new short[bandCount][];
for(int i = 0; i < bandCount; i++) {