[Gdal-dev] gdal_translate error with big file

Shoaib Burq (VPAC) sab at isis.vpac.org
Mon Nov 28 23:30:07 EST 2005


Hi

Trying a coversion from ArcInfo ascii to GeoTiff with internal tiling. 
This is to understand internal tiling better.

The file size is 6.1GB

Currently running FWTools on winXP:
$ gdalinfo --version
GDAL 1.3.1.0, FWTools 1.0.0a6, released 2005/11/03

Upon running the gdal_translate to convert the ascii grids to GeoTiff we
encountered the following error:

$ gdal_translate -co "TFW=YES" -co "TILED=YES" -of GTiff SeafloorElevation
.asc SeafloorElevation_tiled.tif
Input file size is 34799, 29478
0...10...20...30.ERROR 3: Cant seek to offset -1 in input file to read 
data.
ERROR 1: IReadBlock failed at X offset 0, Y offset 9789
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 9789

Works fine using ArcGISs ArcToolBox ASCIItoGRID utility.

Gdalinfo is happy to read the ascii file too:
C:\data>gdalinfo SeafloorElevation.asc
Driver: AAIGrid/Arc/Info ASCII Grid
Size is 34799, 29478
Coordinate System is `'
Origin = (246331.250000,5749620.750000)
Pixel Size = (0.50000000,-0.50000000)
Corner Coordinates:
Upper Left  (  246331.250, 5749620.750)
Lower Left  (  246331.250, 5734881.750)
Upper Right (  263730.750, 5749620.750)
Lower Right (  263730.750, 5734881.750)
Center      (  255031.000, 5742251.250)
Band 1 Block=34799x1 Type=Int16, ColorInterp=Undefined
   NoData Value=-9999

Is this a "big file" support issue? if so how do I get around it?

Thanks for the help
chrs
Shoaib Burq
--



More information about the Gdal-dev mailing list