English

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

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")