Creates a new persistent Dataset of a given format.
[Visual Basic .NET] Public Function SaveAs ( _ ByVal Name As String, _ ByVal Workspace As IWorkspace, _ ByVal Format As String _ ) As IDataset
[C#] public IDataset SaveAs ( string Name, IWorkspace Workspace, string Format );
[C++] HRESULT SaveAs( BSTR Name, IWorkspace* Workspace, BSTR Format, IDataset** 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
Dataset [out, retval]
Dataset is a parameter of type IDataset
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
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" |
How to SaveAs raster data
Development licensing | Deployment licensing |
---|---|
ArcView | ArcView |
ArcEditor | ArcEditor |
ArcInfo | ArcInfo |
Engine Developer Kit | Engine Runtime |
Saving as raster data
By using the ISaveAs interface, you can save a raster dataset or a raster into many raster formats. You can also save to a geodatabase if the output workspace is one of the geodatabase workspaces. See the following code example:
[C#]DE> DE>
DE>
[VB.NET]DE> DE>
Turning off pyramid building
You can also turn off pyramid building for outputs, such as IMG, GRID, and TIFF formats using the ISaveAs2
interface. See the following code example:
[C#]DE> DE>
DE>
[VB.NET]DE> DE>
本文转自:http://changqingnew.blog.163.com/blog/static/1075233820103474425849/