Provides access to methods for saving as a new Dataset.
Description
The ISaveAs interface saves a raster or raster dataset to an output raster dataset in one of the supported raster formats.
Members
Name | Description | |
---|---|---|
CanSaveAs | Checks if it's can be saved as a new persistent Dataset of a given format. | |
SaveAs | Creates a new persistent Dataset of a given format. |
ISaveAs.CanSaveAs Method
Checks if it's can be saved as a new persistent Dataset of a given format.
Public Function CanSaveAs ( _
ByVal Format As String _
) As Boolean
public bool CanSaveAs (
string Format
);
ISaveAs.SaveAs Method
Creates a new persistent Dataset of a given format.
Public Function SaveAs ( _
ByVal Name As String, _
ByVal Workspace As IWorkspace, _
ByVal Format As String _
) As IDataset
public IDataset SaveAs (
string Name,
IWorkspace Workspace,
string Format
);
Remarks
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" |
Note, SaveAs will return a RasterDataset, to prevent from ISaveAs holding the output, .NET ReleaseCOMObject needs to be called to release the referene to the output raster dataset:
System.Runtime.InteropServices.Marshal.ReleaseComObject(outRasterDS);
Classes that implement ISaveAs
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. |