IRasterCollection Interface

Provides access to members that control a raster collection.

Members

Name Description
Method Append Appends a raster to the end.
Method Empty Empties this raster collection.
Method Find Finds a given raster and returns its index position.
Method Get Gets the raster at a given index position.
Method Insert Inserts a raster at a given index.
Method Populate Populates this raster collection from associated RasterCatalog.
Read-only property RasterCount The number of rasters in this raster collection.
Method Remove Removes a raster at a given index.
Method Set Sets the raster at a given index position.

IRasterCollection.Append Method

Appends a raster to the end.

Public Sub Append ( _
    ByVal pRaster As IRaster _
)
public void Append (
    IRaster pRaster
);

IRasterCollection.Empty Method

Empties this raster collection.

Public Sub Empty ( _
)
public void Empty (
);

IRasterCollection.Find Method

Finds a given raster and returns its index position.

Public Function Find ( _
    ByVal pRaster As IRaster _
) As Integer
public int Find (
    IRaster pRaster
);

IRasterCollection.Get Method

Gets the raster at a given index position.

Public Function Get ( _
    ByVal Index As Integer _
) As IRaster
public IRaster Get (
    int Index
);

IRasterCollection.Insert Method

Inserts a raster at a given index.

Public Sub Insert ( _
    ByVal Index As Integer, _
    ByVal pRaster As IRaster _
)
public void Insert (
    int Index,
    IRaster pRaster
);

IRasterCollection.Populate Method

Populates this raster collection from associated RasterCatalog.

Public Sub Populate ( _
    ByVal pExtent As IEnvelope _
)
public void Populate (
    IEnvelope pExtent
);

IRasterCollection.RasterCount Property

The number of rasters in this raster collection.

Public ReadOnly Property RasterCount As Integer
public int RasterCount {get;}

IRasterCollection.Remove Method

Removes a raster at a given index.

Public Sub Remove ( _
    ByVal Index As Integer _
)
public void Remove (
    int Index
);

IRasterCollection.Set Method

Sets the raster at a given index position.

Public Sub Set ( _
    ByVal Index As Integer, _
    ByVal pRaster As IRaster _
)
public void Set (
    int Index,
    IRaster pRaster
);

Classes that implement IRasterCollection

Classes Description
MosaicRaster A mosaic of rasters.

Remarks

The Remove and Empty method will remove the rasters from the _MoaicRaster,_ it does not release the raster object from application. For .NET developers, to prevent the application from holding input rasters or the ouput raster, you must make explicitly call to release the references to the rasters or raster datasets being used:

System.Runtime.InteropServices.Marshal.ReleaseComObject(inputRasterDS);

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