Interface IRasterWorkspace

Namespace
ESRI.ArcGIS.DatasourcesRaster
Assembly
ESRI.Server.DatasourcesRaster.dll

Provides access to members that control a raster workspace.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("AAE25031-35FB-11D2-B1F2-00C04F8EDEFF")]
public interface IRasterWorkspace

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.

 

Methods

CanCopy()

Indicates if this dataset can be copied.

bool CanCopy()

Returns

bool

Copy(string, IWorkspace)

Copies this workspace to a new workspace with the specified name.

IDataset Copy(string copyName, IWorkspace copyWorkspace)

Parameters

copyName string
copyWorkspace IWorkspace

Returns

IDataset

CreateRasterBand(string)

Creates a RasterBand in the workspace given its name.

IRasterBand CreateRasterBand(string Name)

Parameters

Name string

Returns

IRasterBand

CreateRasterDataset(string)

Creates a RasterDataset in the workspace given its name.

IRasterDataset CreateRasterDataset(string Name)

Parameters

Name string

Returns

IRasterDataset

Remarks

CreateRasterDataset creates a file based raster dataset, the origin, width, and height of the raster dataset must be specified along with other required parameters, the raster dataset with the specified dimension and default pixel values will be created . The default pixel values of the raster dataset can be modified by writting pixel blocks to the dataset or mosaicking.

CreateRasterDataset can be used to create GRID, TIFF, BMP, ERDAS Imagine, and in memory raster. The strings used to specify formats are "GRID", "TIFF", "BMP", "IMAGINE Image", and "MEM" respectively. The strings are case-sensitive.

For GRID format, CreateRasterDataset only allows square cell size.

When creating an in memory raster, the file name should be an empty string.

 

IsWorkspace(string)

Indicates if the file path specified is a raster workspace.

bool IsWorkspace(string Name)

Parameters

Name string

Returns

bool

OpenRasterBand(string)

Opens a RasterBand in the workspace given its name.

IRasterBand OpenRasterBand(string Name)

Parameters

Name string

Returns

IRasterBand

OpenRasterDataset(string)

Opens a RasterDataset in the workspace given its name.

IRasterDataset OpenRasterDataset(string Name)

Parameters

Name string

Returns

IRasterDataset