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

P Kishor punk.kish at gmail.com
Sat May 31 14:25:26 EDT 2008


I have a few ArcGRID binary files (.adf extension) that I want to
convert to ArcGRID ASCII (so I may open them with QGIS).

An old email from Frank W indicates this can be done with gdal_translate. See

http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0405/msg00005.html

I was, however, unable to do this successfully. Here is my saga --

[01:45 PM] ~/Data/climate_change/cartagena_arcgrid$ gdal_translate
Usage: gdal_translate [--help-general]
       [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
             CInt16/CInt32/CFloat32/CFloat64}] [-strict]
       [-of format] [-b band] [-outsize xsize[%] ysize[%]]
       [-scale [src_min src_max [dst_min dst_max]]]
       [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry]
       [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
       [-gcp pixel line easting northing [elevation]]*
       [-mo "META-TAG=VALUE"]* [-quiet] [-sds]
       [-co "NAME=VALUE"]*
       src_dataset dst_dataset

GDAL 1.5.1, released 2008/03/14

The following format drivers are configured and support output:
  VRT: Virtual Raster
  GTiff: GeoTIFF
  NITF: National Imagery Transmission Format
  HFA: Erdas Imagine Images (.img)
  ELAS: ELAS
  AAIGrid: Arc/Info ASCII Grid
  DTED: DTED Elevation Raster
  PNG: Portable Network Graphics
  JPEG: JPEG JFIF
  MEM: In Memory Raster
  GIF: Graphics Interchange Format (.gif)
  XPM: X11 PixMap Format
  BMP: MS Windows Device Independent Bitmap
  PCIDSK: PCIDSK Database File
  PCRaster: PCRaster Raster File
  ILWIS: ILWIS Raster Map
  SRTMHGT: SRTMHGT File Format
  Leveller: Leveller heightfield
  Terragen: Terragen heightfield
  PNM: Portable Pixmap Format (netpbm)
  ENVI: ENVI .hdr Labelled
  EHdr: ESRI .hdr Labelled
  PAux: PCI .aux Labelled
  MFF: Vexcel MFF Raster
  MFF2: Vexcel MFF2 (HKV) Raster
  BT: VTP .bt (Binary Terrain) 1.3 Format
  IDA: Image Data and Analysis
  ERS: ERMapper .ers Labelled
  FIT: FIT Image
  RMF: Raster Matrix Format
  RST: Idrisi Raster A.1
  INGR: Intergraph Raster
  GSAG: Golden Software ASCII Grid (.grd)
  GSBG: Golden Software Binary Grid (.grd)
  USGSDEM: USGS Optional ASCII DEM (and CDED)
  ADRG: ARC Digitized Raster Graphics
[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.



-- 
Puneet Kishor


More information about the gdal-dev mailing list