Interface IRasterBand

Namespace
ESRI.ArcGIS.DatasourcesRaster
Assembly
ESRI.Server.DatasourcesRaster.dll

Provides access to members that control a raster band object.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("31E6C041-EC46-11D1-8D21-0000F8780535")]
public interface IRasterBand

Remarks

IRasterBand interface provides access to statistics, histogram, raster attribute table, and colormap of the raster band.

The RasterDataset method returns a reference to the RasterDataset that contains this band.

The AttributeTable method returns a table if the raster band contains, or calculates a virtual table if the number of unique values of the raster band is less than 2048. The raster table can not be modified using ITable interface.

The ComputeStatsAndHist method calculates statistics and a histogram for the band.

The HasStatistics, HasHistogram, and HasColormap methods set the output parameter to True if the band contains a histogram, colormap, or statistics and False if the band does not.

 

Properties

AttributeTable

The attribute table of this raster band.

ITable AttributeTable { get; }

Property Value

ITable

Bandname

The name of this raster band.

string Bandname { get; }

Property Value

string

ClassNames

The class names (titles).

IRasterClassNames ClassNames { get; }

Property Value

IRasterClassNames

Colormap

The colormap of this raster band.

IRasterColormap Colormap { get; }

Property Value

IRasterColormap

ContrastTable

The contrast look-up table of this band.

IContrastTable ContrastTable { get; set; }

Property Value

IContrastTable

Remarks

This method should not be used by application developers.

DescriptorTable

The descriptor table of this raster band.

IDescTable DescriptorTable { get; }

Property Value

IDescTable

Remarks

This method should not be used by application developers.

DirectlyOpened

Indicates if the band was opened directly.

bool DirectlyOpened { get; set; }

Property Value

bool

Remarks

This method should not be used by application developers.

Histogram

The histogram of this raster band.

IRasterHistogram Histogram { get; }

Property Value

IRasterHistogram

RasterDataset

The RasterDataset associated with this raster band.

IRasterDataset RasterDataset { get; }

Property Value

IRasterDataset

Remarks

<P>The <STRONG>RasterDataset</STRONG> object represents a dataset on disk or in a database. It is composed of one or more persistent raster bands. The dataset provides access only to operations that apply to the entire dataset, with the <STRONG>RasterBand</STRONG> providing access to operations that occur on individual bands.</P> <P>The RasterDataset object performs basic dataset management functions, such as copy, rename, and delete. It can also instantiat RasterBand and <STRONG>Raster</STRONG> objects representing other aspects of the data. It can be used to examine dataset properties including different format, extent, spatial reference, and number of bands.</P> <P>The spatial reference of the raster raster dataset can be changed through interface <STRONG>IGeoDatasetSchemaEdit</STRONG>, but it does not project the dataset, only changes the coordinate system associated with the dataset.<BR>The pyramid of the raster dataset can be built or rebuilt to improve display performance for large raster datasets.</P>

RepresentationType

The suggested representation type.

rstRepresentationType RepresentationType { get; set; }

Property Value

rstRepresentationType

Statistics

The statistics of this raster band.

IRasterStatistics Statistics { get; }

Property Value

IRasterStatistics

Methods

CanCopy()

Returns true if this dataset can be copied.

bool CanCopy()

Returns

bool

ComputeStatsAndHist()

Calculates statistics and histogram if not previously stored.

void ComputeStatsAndHist()

Copy(string, IWorkspace)

Copies this raster band to a new dataset with the specified name.

IDataset Copy(string copyName, IWorkspace copyWorkspace)

Parameters

copyName string
copyWorkspace IWorkspace

Returns

IDataset

HasColormap(out bool)

Indicates if this band has a colormap.

void HasColormap(out bool b)

Parameters

b bool

HasStatistics(out bool)

Indicates if this band has statistics.

void HasStatistics(out bool b)

Parameters

b bool

HasTable(out bool)

Indicates if this band has an attribute table.

void HasTable(out bool b)

Parameters

b bool