ArcObjects Library Reference  (DataSourcesRaster)    

IRasterWorkspace Interface

Provides access to members that control a raster workspace.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Method CanCopy Indicates if this dataset can be copied.
Method Copy Copies this workspace to a new workspace with the specified name.
Method IsWorkspace Indicates if the file path specified is a raster workspace.
Method OpenRasterDataset Opens a RasterDataset in the workspace given its name.

CoClasses that implement IRasterWorkspace

CoClasses and Classes Description
RasterWorkspace The raster workspace object.

Remarks

IRasterWorspace is used to access a raster stored in a file system in any supported raster format. RasterWorkspaceFactory must be used to create a raster workspace.

To access raster from geodatabase, use IRasterWorkspaceEx interface.

 

[Visual Basic 6.0]

An example of creating a RasterWorkspace is:

' Create RasterWorkSpaceFactory
Dim pWSF As IWorkspaceFactory
Set pWSF = New RasterWorkspaceFactory
    
' Get RasterWorkspace
Dim pRasterWS As IRasterWorkspace
If pWSF.IsWorkspace(sPath) Then
Set pRasterWS = pWSF.OpenFromFile(sPath, 0)
End If

Example

Raster_OpenRasterDataset_NET

 


Feedback Send feedback on this page