ArcGIS Pro 2.9 API Reference Guide
SaveAs Method (Raster)

ArcGIS.Core.Data.Raster Namespace > Raster Class : SaveAs Method
Name of the new RasterDataset to persist.
ArcGIS.Core.Data.Datastore to persist the new RasterDataset to.
Format of the new RasterDataset to be persisted. The format is case sensitive.
The RasterStorageDef used to specify storage properties.
Create a new persisted RasterDataset with the given name and format in the given ArcGIS.Core.Data.Datastore. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Function SaveAs( _
   ByVal name As String, _
   ByVal datastore As Datastore, _
   ByVal format As String, _
   Optional ByVal storageDef As RasterStorageDef _
) As RasterDataset

Parameters

name
Name of the new RasterDataset to persist.
datastore
ArcGIS.Core.Data.Datastore to persist the new RasterDataset to.
format
Format of the new RasterDataset to be persisted. The format is case sensitive.
storageDef
The RasterStorageDef used to specify storage properties.

Return Value

The newly persisted RasterDataset.
Remarks

Storage properties such as tile size, compression etc. can be specified using the optional RasterStorageDef parameter. These parameters only apply to certain output raster formats and ArcGIS.Core.Data.Datastores. If parameters are not supported by the the output raster format or ArcGIS.Core.Data.Datastore, they are ignored.

The format strings used for the supported formats are below. The strings are case sensitive.

Format Name Format String
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"
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

Raster Class
Raster Members