IRasterDataset2 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.
Method CreateFullRaster Creates a raster containing all bands in this raster dataset.
Method CreateRaster Creates an empty raster.
Read-only property Format The format of this RasterRataset.
Read-only property IsEmpty Indicates whether the raster dataset is empty.
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.

IRasterDataset2.CreateFullRaster Method

Creates a raster containing all bands in this raster dataset.

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

IRasterDataset2.CreateRaster Method

Creates an empty raster.

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

Remarks

An empty raster means that properties of the Raster are not defined. The width, height, and the number of bands of the raster are all 0. It can not be used before populating pixels to it.

IRasterDataset2.IsEmpty Property

Indicates whether the raster dataset is empty.

Public ReadOnly Property IsEmpty As Boolean
public bool IsEmpty {get;}

Remarks

An empty raster means that properties of the Raster are not defined. The width, height, and the number of bands of the raster are all 0. It can not be used before populating pixels to it.

Co-create a Raster and IRasterDataset2::CreateRaster create an empty raster.

IRasterBandCollection::AppendBands or AppendBand allows you to populate this raster.

Inherited Interfaces

Interfaces Description
IRasterDataset Provides access to members that control a raster dataset.

Classes that implement IRasterDataset2

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

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