This document is archived and information here might be outdated.  Recommended version.


IRasterWorkspaceEx.SaveAsRasterDataset Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRasterWorkspaceEx Interface > IRasterWorkspaceEx.SaveAsRasterDataset Method
ArcGIS Developer Help

IRasterWorkspaceEx.SaveAsRasterDataset Method

Creates a new raster dataset from another seed Raster.

[Visual Basic .NET]
Public Function SaveAsRasterDataset ( _
    ByVal Name As String, _
    ByVal Raster As IRaster, _
    ByVal StorageDef As IRasterStorageDef, _
    ByVal ConfigKeyword As String, _
    ByVal RasterDef As IRasterDef, _
    ByVal GeometryDef As IGeometryDef _
) As IRasterDataset
[C#]
public IRasterDataset SaveAsRasterDataset (
    string Name,
    IRaster Raster,
    IRasterStorageDef StorageDef,
    string ConfigKeyword,
    IRasterDef RasterDef,
    IGeometryDef GeometryDef
);
[C++]
HRESULT SaveAsRasterDataset(
  BSTR Name,
  IRaster* Raster,
  IRasterStorageDef* StorageDef,
  BSTR ConfigKeyword,
  IRasterDef* RasterDef,
  IGeometryDef* GeometryDef
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR Raster [in]
Raster is a parameter of type IRaster* StorageDef [in]
StorageDef is a parameter of type IRasterStorageDef* ConfigKeyword [in]
ConfigKeyword is a parameter of type BSTR RasterDef [in]
RasterDef is a parameter of type IRasterDef* GeometryDef [in]
GeometryDef is a parameter of type IGeometryDef*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The SaveAsRasterDataset method provides a way to save any raster as a raster dataset in the geodatabase.  It is similar to the CreateRasterDataset method, but instead of creating an empty raster dataset, it copies the input raster properties and pixels to the output raster dataset in the geodatabase. If you want to keep the spatial reference of the input raster dataset for both raster column and geometry column, you can pass nothing to the RasterDef argument and GeometryDef argument.

 


 

See Also

IRasterWorkspaceEx Interface