IRasterDataset Interface

Provides access to members that control a raster dataset.

Members

Name Description
Method BasicOpenFromFile Opens the dataset from file.
Method CanCopy Returns true if this dataset can be copied.
Read-only property CompleteName The full path of the RasterDataset.
Read-only property CompressionType The compression technique applied to this RasterDataset.
Method Copy Copies this dataset to a new dataset with the specified name.
Method CreateDefaultRaster Creates a raster object with the default properties for this dataset.
Read-only property Format The format of this RasterRataset.
Method OpenFromFile Attaches dataset to a particular file.
Method PrecalculateStats Calculates statistics and histograms for specified bands.
Read-only property SensorType The sensor type used for this RasterDataset.

IRasterDataset.BasicOpenFromFile Method

Opens the dataset from file.

Public Sub BasicOpenFromFile ( _
    ByVal Path As String _
)
public void BasicOpenFromFile (
    string Path
);

IRasterDataset.CanCopy Method

Returns true if this dataset can be copied.

Public Function CanCopy ( _
) As Boolean
public bool CanCopy (
);

IRasterDataset.CompleteName Property

The full path of the RasterDataset.

Public ReadOnly Property CompleteName As String
public string CompleteName {get;}

IRasterDataset.CompressionType Property

The compression technique applied to this RasterDataset.

Public ReadOnly Property CompressionType As String
public string CompressionType {get;}

IRasterDataset.Copy Method

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

Public Function Copy ( _
    ByVal copyName As String, _
    ByVal copyWorkspace As IWorkspace _
) As IDataset
public IDataset Copy (
    string copyName,
    IWorkspace copyWorkspace
);

IRasterDataset.CreateDefaultRaster Method

Creates a raster object with the default properties for this dataset.

Public Function CreateDefaultRaster ( _
) As IRaster
public IRaster CreateDefaultRaster (
);

Remarks

The CreateDefaultRaster method creates a Raster that has a square cell size and contains only three raster bands if the dataset has more than three bands. The three bands are the default bands used in raster RGB renderer and are determined by the settings for default raster behavior made on the RasterDefaultsEnv object in esriCarto library.

IRasterDataset.Format Property

The format of this RasterRataset.

Public ReadOnly Property Format As String
public string Format {get;}

IRasterDataset.OpenFromFile Method

Attaches dataset to a particular file.

Public Sub OpenFromFile ( _
    ByVal Path As String _
)
public void OpenFromFile (
    string Path
);

IRasterDataset.PrecalculateStats Method

Calculates statistics and histograms for specified bands.

Public Sub PrecalculateStats ( _
    ByVal index_list As Object _
)
public void PrecalculateStats (
    object index_list
);

IRasterDataset.SensorType Property

The sensor type used for this RasterDataset.

Public ReadOnly Property SensorType As String
public string SensorType {get;}

Classes that implement IRasterDataset

Classes Description
FunctionRasterDataset (esriDataSourcesRaster) A class for a function raster dataset.
RasterBand (esriDataSourcesRaster) A representation of a single band of a raster dataset on disk.
RasterDataset (esriDataSourcesRaster) A representation of a raster dataset on disk.

Remarks

TheIRasterDatasetinterface provides basic access to the properties of a raster dataset such as format, compression type etc. It also allows to create a Raster object of the raster dataset.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.