Interface IRasterCollection

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

Provides access to members that control a raster collection.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("BD52F6E3-FC16-4C2C-9472-94CABF907FD0")]
public interface IRasterCollection

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);

Properties

RasterCount

The number of rasters in this raster collection.

int RasterCount { get; }

Property Value

int

Methods

Append(IRaster)

Appends a raster to the end.

void Append(IRaster pRaster)

Parameters

pRaster IRaster

Empty()

Empties this raster collection.

void Empty()

Find(IRaster)

Finds a given raster and returns its index position.

int Find(IRaster pRaster)

Parameters

pRaster IRaster

Returns

int

Get(int)

Gets the raster at a given index position.

IRaster Get(int Index)

Parameters

Index int

Returns

IRaster

Insert(int, IRaster)

Inserts a raster at a given index.

void Insert(int Index, IRaster pRaster)

Parameters

Index int
pRaster IRaster

Populate(IEnvelope)

Populates this raster collection from associated RasterCatalog.

void Populate(IEnvelope pExtent)

Parameters

pExtent IEnvelope

Remove(int)

Removes a raster at a given index.

void Remove(int Index)

Parameters

Index int

Set(int, IRaster)

Sets the raster at a given index position.

void Set(int Index, IRaster pRaster)

Parameters

Index int
pRaster IRaster