[gdal-dev] gdal translate error converting ArcGRID binary to ASCII

William Kyngesburye woklist at kyngchaos.com
Sat May 31 14:59:15 EDT 2008


On May 31, 2008, at 1:25 PM, P Kishor wrote:

> [01:45 PM] ~/Data/climate_change/cartagena_arcgrid$ ls *.adf
> 76980974\76980974\dblbnd.adf*   76980974\76980974\prj.adf*
> 76980974\76980974\w001001.adf*
> 76980974\76980974\hdr.adf*      76980974\76980974\sta.adf*
> 76980974\76980974\w001001x.adf*
> [01:46 PM] ~/Data/climate_change/cartagena_arcgrid$ gdal_translate -of
> AAIGrid 76980974\\76980974\\w001001.adf out.grd
> ERROR 4: `76980974\76980974\w001001.adf' not recognised as a supported
> file format.
>
> GDALOpen failed - 4
> `76980974\76980974\w001001.adf' not recognised as a supported file  
> format.
>
> I am on an Intel Macbook Pro with Mac OS X 10.5.3.
>

One possibility is the backslashes - I see that often when downloading  
a zip made on Windows and they expand into a flat file layout, but  
they indicate a directory and file structure that GDAL may be  
expecting.  Try removing the prefix of 'folders' from all the file  
names so it looks like:

dblbnd.adf
hdr.adf
prj.adf
sta.adf
w001001.adf
w001001x.adf

and put it in a folder named '76980974'.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"I ache, therefore I am.  Or in my case - I am, therefore I ache."

- Marvin




More information about the gdal-dev mailing list