PROBLEM

Rasters from a SaveAs method are not recognized in ArcCatalog or ArcMap

Last Published: April 25, 2020

Description

After using a SaveAs method, the output rasters are not recognized in ArcCatalog or ArcMap, even after completing a refresh on the folder that contains the files. The files may even appear as XML documents in ArcCatalog.

Cause

The SaveAs method does not apply the correct file extension to the output raster dataset.

Solution or Workaround

Specify the appropriate output file extension for the raster dataset being created with the SaveAs method as in the two examples below:


Code:
inRBC.SaveAs("test.tif", pRWS, "TIFF")


Code:
inRBC.SaveAs(outRasName & ".tif", pRWS, "TIFF")

Article ID:000005820

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic