[Gdal-dev] AAIGrid driver reading Floating points incorrectly?

Mateusz Loskot mateusz at loskot.net
Fri Jul 14 11:22:11 EDT 2006


Christopher Condit wrote:
> Hi Bryan-
> I think that GDAL uses a shortcut to decide on the AAIGrid data type.
> Namely: scanning the first 100 bytes only and looking for any decimal
> places.  In your case it appears that the first line in all NODATA
> (integers).  I think if you change the first one of those to -99999.0
> you should see a change in how the driver handles the file.

Christopher,

After Bug 1071
(http://bugzilla.remotesensing.org/show_bug.cgi?id=1071)
has been fixed, the AAIGrid driver scans the whole file
to search for floatpoint values.
So, now it should be no difference if the float-point value is in the
first 100 bytes or after this junk.

Bryan,

What version of GDAL are you using?
Have you tested with latest 1.3.2 or CVS?

Best regards
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list