/* -------------------------------------------------------------------- */
/* Displaying the raster parameters */
/* -------------------------------------------------------------------- */
for (int iBand = 1; iBand <= ds.getRasterCount(); iBand++)
{
Band band = ds.GetRasterBand(iBand);
System.out.println("Band " + iBand + " :");
System.out.println(" DataType: " + band.getDataType());
System.out.println(" Size (" + band.getXSize() + "," + band.getYSize() + ")");
System.out.println(" PaletteInterp: " + gdal.GetColorInterpretationName(band.GetRasterColorInterpretation()));