Provides access to members that control a raster workspace.
| Description | ||
|---|---|---|
![]() |
CanCopy | Indicates if this dataset can be copied. |
![]() |
Copy | Copies this workspace to a new workspace with the specified name. |
![]() |
IsWorkspace | Indicates if the file path specified is a raster workspace. |
![]() |
OpenRasterDataset | Opens a RasterDataset in the workspace given its name. |
| CoClasses and Classes | Description |
|---|---|
| RasterWorkspace | The raster workspace object. |
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.
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