ISaveAs.SaveAs Method

 

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 NameString 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 licensingDeployment licensing
ArcViewArcView
ArcEditorArcEditor
ArcInfoArcInfo
Engine Developer KitEngine 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 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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值