Returns a collection of Raster objects which represents all the rasters in a geodatabase.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public ReadOnlyCollection<Raster> GetRasters()
Visual Basic (Declaration)
Public Function GetRasters As ReadOnlyCollection(Of Raster)

Return Value

A ReadOnlyCollection object consisting of Raster objects each of which represents a geodatabase raster consisting of a rectangular grid of cells arranged into rows and columns.

Examples

The code below shows how to return an collection of all rasters in a geodatabase.
CopyC#
//Open the geodatabase
Geodatabase fileGdb = new Geodatabase(@"C:\Data\Scotland.gdb");

//Loop over an enumeration of all rasters
foreach (Raster raster in fileGdb.GetRasters())
{
  //Print the name of each raster in the geodatabase
  System.Diagnostics.Debug.Print(raster.Name);
}
CopyVB.NET
'Open the geodatabase
Dim fileGdb As Geodatabase = New Geodatabase("C:\Data\Scotland.gdb")

'Loop over an enumeration of all rasters
For Each gdbRaster As Raster In fileGdb.GetRasters()
  'Print the name of each raster in the geodatabase
  System.Diagnostics.Debug.Print(gdbRaster.Name)
Next

See Also