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
Copy(string, IWorkspace)
Copies this workspace to a new workspace with the specified name.
IDataset Copy(string copyName, IWorkspace copyWorkspace)
Parameters
copyNamestringcopyWorkspaceIWorkspace
Returns
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
NamestringFormatstringOriginIPointcolumnCountintRowCountintcellSizeXdoublecellSizeYdoublenumBandsintPixelTyperstPixelTypeSpatialReferenceISpatialReferencePermanentbool
Returns
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
Namestring
Returns
OpenRasterDataset(string)
Opens a RasterDataset in the workspace given its name.
IRasterDataset OpenRasterDataset(string Name)
Parameters
Namestring
Returns
Remarks
OpenRasterDataset opens a RasterDataset from a supported file based raster format, such as GRID, Imagine, BMP, TIFF, etc.