ISaveAs2 Interface

Provides access to methods for saving as a new Raster Dataset.

Description

The ISaveAs2 interface provides more options when saving a raster dataset, you can specify not only the format, but also tilesize, compression type and quality for file or geodatabase rasters.

The supported formats for writing are Imagine, TIFF, GRID, JPEG2000, JPEG, BMP, GIF, PNG, PCI Raster, Idrisi Raster Format, BIL, BIP, BSQ, X11 Pixmap, HDF4, ENVI, Memory Raster and geodatabase raster.

Members

Name Description
Method CanSaveAs Checks if it's can be saved as a new persistent Dataset of a given format.
Method SaveAs Creates a new persistent Dataset of a given format.
Method SaveAsRasterDataset Creates a new persistent Raster Dataset of a given format and specified storage definition.

ISaveAs2.SaveAsRasterDataset Method

Creates a new persistent Raster Dataset of a given format and specified storage definition.

Public Function SaveAsRasterDataset ( _
    ByVal Name As String, _
    ByVal Workspace As IWorkspace, _
    ByVal Format As String, _
    ByVal StorageDef As IRasterStorageDef _
) As IRasterDataset
public IRasterDataset SaveAsRasterDataset (
    string Name,
    IWorkspace Workspace,
    string Format,
    IRasterStorageDef StorageDef
);

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"

Inherited Interfaces

Interfaces Description
ISaveAs Provides access to methods for saving as a new Dataset.

Classes that implement ISaveAs2

Classes Description
MosaicRaster (esriDataSourcesRaster) A mosaic of rasters.
Raster (esriDataSourcesRaster) An in-memory representation of a dynamic raster that can perform resampling and reprojection.
RasterDataset (esriDataSourcesRaster) A representation of a raster dataset on disk.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.