com.esri.arcgis.geodatabase
Interface ISaveAs2

All Superinterfaces:
ISaveAs, Serializable
All Known Implementing Classes:
MosaicRaster, Raster, RasterDataset, RenderedRaster

public interface ISaveAs2
extends ISaveAs, Serializable

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.

Product Availability

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

See Also:
MosaicRaster

Method Summary
 IRasterDataset saveAsRasterDataset(String name, IWorkspace workspace, String format, IRasterStorageDef storageDef)
          Creates a new persistent Raster Dataset of a given format and specified storage definition.
 
Methods inherited from interface com.esri.arcgis.geodatabase.ISaveAs
canSaveAs, saveAs
 

Method Detail

saveAsRasterDataset

IRasterDataset saveAsRasterDataset(String name,
                                   IWorkspace workspace,
                                   String format,
                                   IRasterStorageDef storageDef)
                                   throws IOException,
                                          AutomationException
Creates a new persistent Raster Dataset of a given format and specified storage definition.

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"

Product Availability

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

Parameters:
name - The name (in)
workspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
format - The format (in)
storageDef - A reference to a com.esri.arcgis.geodatabase.IRasterStorageDef (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.