RasterLayer.GetBand

RasterLayer.GetBand method

Gets a band by the specified index.

public abstract IRasterBand GetBand(int index = 0)
ParameterTypeDescription
indexInt32Band numbers start at 0 and band is assumed to be 0 if not specified.

Return Value

Returns basic meta data about a raster band.

Remarks

If raster contains no bands then an error is thrown.

See Also