ArcGIS Explorer Component Help |
Geodatabase..::.OpenRaster Method |
Geodatabase Class Example See Also |
Returns a Raster object which represents a raster stored in a geodatabase.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public Raster OpenRaster( string name ) |
Visual Basic (Declaration) |
---|
Public Function OpenRaster ( _ name As String _ ) As Raster |
Parameters
- name
- Type: System..::.String
The name of the raster to open. For ArcSDE geodatabases fully qualify the raster name where required (e.g. "owner.rastername" or "database.owner.rastername").
Return Value
A Raster object which represents a geodatabase raster consisting of a rectangular grid of cells arranged into rows and columns.Examples
The code below opens a file geodatabase raster called mountains_imagery.
CopyC#
//Connect to a file geodatabase Geodatabase fileGdb = new Geodatabase(@"C:\Data\Scotland.gdb"); //Open a geodatabase raster Raster rasterImagery = fileGdb.OpenRaster("mountain_imagery");
CopyVB.NET
'Open the geodatabase Dim fileGdb As Geodatabase = New Geodatabase("C:\Data\Scotland.gdb") 'Open a geodatabase raster Dim rasterImagery As Raster = fileGdb.OpenRaster("mountain_imagery")