ArcGIS Pro 2.8 API Reference Guide
CanSaveAs Method

ArcGIS.Core.Data.Raster Namespace > Raster Class : CanSaveAs Method
Format to save the raster to.
Gets a value indicating whether this raster can be saved to the given format. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public bool CanSaveAs( 
   string format
)
Public Function CanSaveAs( _
   ByVal format As String _
) As Boolean

Parameters

format
Format to save the raster to.

Return Value

A boolean value that is true if this raster can be saved to the given format; otherwise, false.
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 10, Windows 8.1

See Also

Reference

Raster Class
Raster Members