public RasterBand GetBand( int index )
Public Function GetBand( _ ByVal index As Integer _ ) As RasterBand
Parameters
- index
- Index of a band in this raster dataset.
Return Value
The RasterBand from this raster dataset based on the band index.
public RasterBand GetBand( int index )
Public Function GetBand( _ ByVal index As Integer _ ) As RasterBand
var count = rasterDataset.GetBandCount(); RasterBand rasterBandByName = rasterDataset.GetBandByName(sBandName); var index = rasterDataset.GetBandIndex(sBandName); // Get a RasterBand from the raster dataset RasterBand rasterBand = rasterDataset.GetBand(0); // Get the RasterBandDefinition from the raster band. RasterBandDefinition rasterBandDefinition = rasterBand.GetDefinition(); // Get the name of the raster band from the raster band. string bandName = rasterBandDefinition.GetName();
Target Platforms: Windows 11, Windows 10