This document is archived and information here might be outdated. Recommended version. |
Creates a new persistent Raster Dataset of a given format and specified storage definition.
[Visual Basic .NET] Public Function SaveAsRasterDataset ( _ ByVal Name As String, _ ByVal Workspace As IWorkspace, _ ByVal Format As String, _ ByVal StorageDef As IRasterStorageDef _ ) As IRasterDataset
[C#] public IRasterDataset SaveAsRasterDataset ( string Name, IWorkspace Workspace, string Format, IRasterStorageDef StorageDef );
[C++]
HRESULT SaveAsRasterDataset(
BSTR Name,
IWorkspace* Workspace,
BSTR Format,
IRasterStorageDef* StorageDef
);
[C++]
Parameters Name [in]
Name is a parameter of type BSTR Workspace [in]
Workspace is a parameter of type IWorkspace* Format [in]
Format is a parameter of type BSTR StorageDef [in]
StorageDef is a parameter of type IRasterStorageDef*
The pStorageDef argument specified the storage parameters, compression type, compression quality, tile size, ect. The parameters apply to certain output raster format, if the output raster format doesn't support the storage parameter specified, the settings are ignored.
The format strings used for the supported formats are below, and they are case sensitive:
Format Name | String Used |
---|---|
Imagine | "IMAGINE Image" |
TIFF | "TIFF" |
GRID | "GRID" |
JPEG | "JPG" |
JP2000 | "JP2" |
BMP | "BMP" |
PNG | "PNG" |
GIF | "GIF" |
PCI Raster | "PIX" |
X11 Pixmap | "XPM" |
PCRaster | "MAP" |
Memory Raster | "MEM" |
HDF4 | "HDF4" |
BIL | "BIL" |
BIP | "BIP" |
BSQ | "BSQ" |
Idrisi Raster Format | "RST" |
ENVI Raster Format | "ENVI" |
Geodatabase Raster | "GDB" |