Creates a new persistent Dataset of a given format.
[VisualBasic.NET] Public Function SaveAs ( _ ByValNameAsString,_ ByValWorkspaceAsIWorkspace,_ ByValFormatAsString _ )AsIDataset
[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]
Nameis a parameter of typeBSTR
Workspace[in]
Workspaceis a parameter of typeIWorkspace
Format[in]
Formatis a parameter of typeBSTR
Dataset[out,retval]
Datasetis a parameter of typeIDataset
Product Availability
Available with ArcGIS Engine,ArcGIS Desktop,and ArcGIS Server.
Remarks
The format strings usedfor 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 asraster data
By using theISaveAs interface,you can save araster datasetor a rasterinto 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,suchas IMG,and TIFF formats using theISaveAs2
interface. See the following code example:
[C#]DE>DE>
DE>
[VB.NET]DE>DE>
本文转自:http://changqingnew.blog.163.com/blog/static/1075233820103474425849/
原文链接:https://www.f2er.com/vb/261326.html