Interface IRasterWorkspace2

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that control an improved raster workspace.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("9FD9A370-1D1B-11D4-ABDA-0008C73FCA1C")]
public interface IRasterWorkspace2

Remarks

IRasterWorspace2 is used to access a raster stored in a file system in any supported raster format. To access raster from geodtabase, 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

Remarks

Not implemented.

CreateRasterDataset(string, string, IPoint, int, int, double, double, int, rstPixelType, ISpatialReference, bool)

Creates a RasterDataset in the workspace given its name.

IRasterDataset CreateRasterDataset(string Name, string Format, IPoint Origin, int columnCount, int RowCount, double cellSizeX, double cellSizeY, int numBands, rstPixelType PixelType, ISpatialReference SpatialReference, bool Permanent = true)

Parameters

Name string
Format string
Origin IPoint
columnCount int
RowCount int
cellSizeX double
cellSizeY double
numBands int
PixelType rstPixelType
SpatialReference ISpatialReference
Permanent bool

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, ERDAS Imagine,BMP, Idrisi format,  and in memory raster. The strings used to specify formats are "GRID", "TIFF", "IMAGINE Image", "BMP", "RST", 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 can 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

OpenRasterDataset(string)

Opens a RasterDataset in the workspace given its name.

IRasterDataset OpenRasterDataset(string Name)

Parameters

Name string

Returns

IRasterDataset

Remarks

OpenRasterDataset  opens a  RasterDataset from a supported file based raster format, such as GRID, Imagine, BMP, TIFF, etc.