[gdal-dev] Stuck trying to translate ArcGrid Binary Data

Frank Warmerdam warmerdam at p...
Sat Apr 28 13:21:04 EDT 2001


rupert at i... wrote:
> 
> Hello,
> I am looking to translate some binary ArcGrid data to a form such as
> Ascii ArcGrid or tiff to use in a tool such as Teragen or GenesisII.
> 
> When I run gdalinfo on the data i get the following:
> 
> C:\Downloads\gdal-114-ntbin\gdal114\bin>gdalinfo gx25dem
> Driver: AIG/Arc/Info Binary Grid
> Size is 928, 918
> Coordinate System is `'
> Origin = (2722695.925926,6228446.759259)
> Pixel Size = (25.000000,-25.000000)
> Corner Coordinates:
> Upper Left ( 2722695.926, 6228446.759)
> Lower Left ( 2722695.926, 6205496.759)
> Upper Right ( 2745895.926, 6228446.759)
> Lower Right ( 2745895.926, 6205496.759)
> Center ( 2734295.926, 6216971.759)
> Band 1 Block=256x4 Type=Int32, ColorInterp=Undefined
> Min=700.000/1, Max=2797.000/1
> 
> Now I want to convert this into something else like a jpeg so that I
> can use this as height data image.
> 
> What exactly do I do within gdal_translate? I have tried such things
> as this:
> 
> C:\Downloads\gdal-114-ntbin\gdal114\bin>gdal_translate -of AIG
> gx25dem test.tif
> 
> With this response...
> 
> Size is 928, 918
> 0.ERROR 6: GDALDriver::Create() ... no create method implemented for
> this format

Rupert, 

The "-of AIG" flag indicates the output format is AIG (ArcInfo Binary
Grid) but writing this format is not supported. If you want to translate
to GeoTIFF format use the "-of GTiff" flag or leave it off since GeoTIFF
is the default output format.

Because the source data is seen as type "Int32" an Int32 GeoTIFF file
will be produced. Most software cannot read Int32 GeoTIFF files so you
may need to use a gdal_translate option to alter the output type. Depending
on the range of data, and the program consuming the result appropriate
values might be "-ot UInt16" or "-ot Byte". 

Good luck,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at p...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list