Opened 19 years ago

Last modified 16 years ago

#910 closed defect

ESRI ASCII GRIDS: Error reading last line — at Version 3

Reported by: haerta@… Owned by: Mateusz Łoskot
Priority: normal Milestone: 1.5.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: AAIGrid
Cc: warmerdam

Description (last modified by Mateusz Łoskot)

When reading ACII Grid files with ncols 1201/nrows 1201 I get the following errors:

gdalinfo -mm <gridname.grd>:

ERROR 3: Token too long at scanline 1200.
ERROR 1: IReadBlock failed at X offset 0, Y offset 1200

I found out that these errors are reported if the last line of values is not ended with a new line (carriage return/line feed?)

After pressing return key after the last line the file can be read as expected.

It seems that only GDAL has problems with these files.

Change History (3)

comment:1 by warmerdam, 17 years ago

Description: modified (diff)
Milestone: 1.5.0
Priority: highnormal

Mateusz,

I'd appreciate your checking this, and fixing if it still exists. I think it is sufficient to address this in trunk.

comment:2 by warmerdam, 17 years ago

Cc: warmerdam added
Owner: changed from warmerdam to Mateusz Łoskot

comment:3 by Mateusz Łoskot, 17 years ago

Description: modified (diff)
Keywords: AAIGrid added
Note: See TracTickets for help on using tickets.