[Gdal-dev] ArcInfo Grid Read Error

Shannon Scott sscott at gwi.net
Thu Apr 1 10:30:52 EST 2004


Thank you Frank.
I recopied everything from the cd again... and it works now.
Sorry to bother you kind folks.
Take Care
Shannon


-----Original Message-----
From: gdal-dev-admin at remotesensing.org
[mailto:gdal-dev-admin at remotesensing.org] On Behalf Of Frank Warmerdam
Sent: Thursday, April 01, 2004 9:11 AM
To: gdal-dev at remotesensing.org
Subject: Re: [Gdal-dev] ArcInfo Grid Read Error

Shannon Scott wrote:
> Hello,
> 
> I am new to gdal, so please forgive my ignorance.
> 
> I am trying to convert some ArcInfo Grid data to a tif.
> 
> I have been trying to use gdal_translate, but I get the following
error.
> 
>  
> 
> $ gdal_translate -of GTiff dem24k_int test1.tif
> 
> Input file size is 20943, 21754
> 
> 0...10..ERROR 1: Read of 1030 bytes from offset 1260810 for grid block

> failed.
> 
> ERROR 1: IReadBlock failed at X offset 33, Y offset 896
> 
> ERROR 1: GetBlockRef failed at X block offset 33, Y block offset 896
> 
>  
> 
> I also tried the -not_strict optin, but got the same error.  Is there 
> any way to "clean" the ArcInfo Grid ( assuming it has bad data ).  Has

> anyone else had this problem?

Shannon,

I imagine the file is truncated from the proper length for some reason.
I don't know of a way to get the available data out with gdal_translate.
Of course, you could write your own little utility that reads the source
file block by block, and that ignores errors and continues.  Is the
grid main image file really only 1260810 bytes long or so?  It seems
like
most of your data is already gone.

Best regards,

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

_______________________________________________
Gdal-dev mailing list
Gdal-dev at remotesensing.org
http://remotesensing.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list