This document is archived and information here might be outdated.  Recommended version.


IRasterWorkspace Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterWorkspace Interface (ArcObjects .NET 10.6 SDK)
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

Name Description
Method CanCopy Indicates if this dataset can be copied.
Method Copy Copies this workspace to a new workspace with the specified name.
Method CreateRasterBand Creates a RasterBand in the workspace given its name.
Method CreateRasterDataset Creates a RasterDataset in the workspace given its name.
Method IsWorkspace Indicates if the file path specified is a raster workspace.
Method OpenRasterBand Opens a RasterBand in the workspace given its name.
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 create a raster dataset in a file format, use IRasterWorkspace2 interface in the Geodatabase library

To access raster from geodatabase, use IRasterWorkspaceEx interface.

 

.NET Snippets

Open Raster File As GeoDatset

.NET Samples

Create a Raster Function template (Code Files: CreateRasterFunctionTemplate) | Create a custom raster type from the ground up for DMCII data (Code Files: DMCIIRasterType TestDMCIIRasterType) | Publish an image service and set configurations (Code Files: ISConfig) | Create a Math Function Raster dataset (Code Files: CreateMathFunctionRasterDataset) | Create a Mosaic dataset (Code Files: CreateMosaicDataset) | Create a custom NoData pixel filter (Code Files: TestApp) | Create an NDVI custom raster function (Code Files: NDVICustomFunction TestNDVICustomFunction) | Create a Function Raster dataset (Code Files: CreateFunctionRasterDataset) | Create a custom raster function (Code Files: TestWatermarkFunction WatermarkFunction)

.NET Related Topics

Accessing ECWP service | Accessing raster workspaces | DataSourcesRaster | How to access a raster dataset | How to save a function raster dataset into a raster dataset | How to save raster data and set storage properties | Performing a spatial analysis operation using objects