加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

ISaveAs.SaveAs Method

发布时间:2020-12-16 22:57:01 所属栏目:大数据 来源:网络整理
导读:Creates a new persistent Dataset of a given format. [VisualBasic.NET] Public Function SaveAs ( _ ByVal Name As String,_ ByVal Workspace As IWorkspace,_ ByVal Format As String _ )As IDataset [C#] public IDataset SaveAs ( string Name, IWorks

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/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读