ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / RasterBandDefinition Class
Members Example

In This Topic
    RasterBandDefinition Class
    In This Topic
    Represents the properties of a RasterBand.
    Object Model
    RasterBandDefinition ClassEnvelope ClassSpatialReference Class
    Syntax
    Public NotInheritable Class RasterBandDefinition 
       Inherits ArcGIS.Core.Data.Definition
       Implements System.IDisposable 
    public sealed class RasterBandDefinition : ArcGIS.Core.Data.Definition, System.IDisposable  
    Example
    Access the bands in a raster dataset
    {
      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();
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CoreObjectsBase
          ArcGIS.Core.Data.Definition
             ArcGIS.Core.Data.Raster.RasterBandDefinition

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also