Ticket #1926 (closed defect: fixed)
Corrects for the wrong header info printed by gdalinfo on GMT grids and the ReadAttributes method issue
| Reported by: | jluis | Owned by: | chaitanya |
|---|---|---|---|
| Priority: | high | Milestone: | 1.6.4 |
| Component: | GDAL_Raster | Version: | svn-trunk |
| Severity: | normal | Keywords: | netcdf |
| Cc: | stensby, dnadeau, warmerdam, kyle |
Description
Patches for both the header decoding of GMT produced grids and the bug reported by Mario Cruz, where "The ReadAttributes? method was using a fixed-length array to store attribute data, crashing when presented with an attribute whose data size was larger than MAX_STR_LEN".
However, there is still one problem that requires a more extended solution. The way the driver works, it expects files written "upside down" (the first row is the top row) which is the contrary of what GMT does (it writes the first row as the bottom row). That is why GMT grids are imported flipped up-down. Both ways of writing the grids are valid, but the driver must detect it and act accordingly.

