ArcObjects Library Reference (GeoDatabase)  

ISaveAs2.SaveAsRasterDataset Method

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,
  IRasterDataset** Dataset
);
[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

Dataset [out, retval]

  Dataset is a parameter of type IRasterDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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"

See Also

ISaveAs2 Interface

.NET Related Topics

DataSourcesRaster | How to convert a raster dataset to a JPEG2000 raster dataset | How to save raster data and set storage properties |