ISaveAs.SaveAs Method

前端之家收集整理的这篇文章主要介绍了ISaveAs.SaveAs Method前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

Summary This article shows how to save a raster to varIoUs raster formats (save as),how to set up storage properties if saved to a geodatabase,and how to control pyramid building when saved as IMG,TIFF,GRID,and geodatabase formats.
Development licensing Deployment licensing
ArcView ArcView
ArcEditor ArcEditor
ArcInfo ArcInfo
Engine Developer Kit Engine Runtime
Additional Requirements
  • Add the following References to your Visual Studio project and the corresponding using (C#) or Imports (VB.NET) statements:
  • Imports ESRI.ArcGIS.DataSourcesGDB
  • Imports ESRI.ArcGIS.DataSourcesRaster
  • Imports ESRI.ArcGIS.Geodatabase
  • Imports ESRI.ArcGIS.esriSystem

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

猜你在找的VB相关文章