In ArcGIS Pro, I am attempting to convert and export Esri Grid Format (ADF) files that are rasters to TIFF files. I want to be able to do this in Python using ArcPy. However, when I attempt to use the tool 'Raster to Other Format', I received errors for each raster conversion.
Below is my code:
arcpy.conversion.RasterToOtherFormat(r"path to 1st raster';'path to 2nd raster';'path to 3rd raster';'path to 4th raster'", r"path to 5th raster", "TIFF")
Below is the error I get on each raster:
Failed to convert: . ERROR 160180: The junction has invalid geometry (i.e., non-point or invalid location). Failed to execute (CopyRaster).
Is there a way I can create code that export ESRI grid formatted rasters to a different raster type? I do no necessarily have to use ArcPy to accomplish this. It seems as if there is very little information out there discussing coverages and how to manipulate/export them.
1 Answer 1
If you type ADF into the ArcGIS Pro help file, what do you get? Absolutely nothing, that's because ADF is not a raster file format. You almost certainly have an ESRI GRID raster which is a FOLDER with files, some being ADF. You need to export the folder not its contents. You might benefit from reading this page on raster formats?
-
I do have a ESRI GRID raster in a folder with files, all of them being ADF files. The files are in formats and named like so:
dblbnd.adf, hdr.adf, prj.adf, sta.adf, w001001.adf, w001001x.adf
Connor Garrett– Connor Garrett2023年05月18日 18:55:14 +00:00Commented May 18, 2023 at 18:55 -
1So it's the folder that holds those file that is the "raster".Hornbydd– Hornbydd2023年05月19日 00:01:32 +00:00Commented May 19, 2023 at 0:01
-
understood. So the actual folder name is what needs to be exported?Connor Garrett– Connor Garrett2023年05月19日 15:14:17 +00:00Commented May 19, 2023 at 15:14
Explore related questions
See similar questions with these tags.
dblbnd.adf, hdr.adf, prj.adf, sta.adf, w001001.adf, w001001x.adf