Small AI ASCII grid file files are not recognised as a supported file format
According to aaigriddataset.cpp, line 426, small files with less than 100 bytes do not look like an AI ASCII grid file. This results in into ERROR 4 when trying to read the following legitimate, but only 62 byte large file:
$ cat test.asc
ncols 1
nrows 1
xllcorner 0
yllcorner 0
cellsize 1
0
$ gdalinfo test.asc
ERROR 4: `test.asc' not recognised as a supported file format.
gdalinfo failed - unable to open 'test.asc'.
Change History
(4)
Description: |
modified (diff)
|
Keywords: |
AAIGRID added
|
Milestone: |
→ 1.9.0
|
Priority: |
normal → low
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
I'll take this.