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

Bryan Keith bryan at geomega.com
Fri Jul 14 12:36:02 EDT 2006



Mateusz Loskot wrote:
> 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?

Mateusz,

 >gdalinfo --version
GDAL 1.3.2.0, FWTools 1.0.0, released 2006/05/05

> Have you tested with latest 1.3.2 or CVS?

I have not tested with CVS.

I read on bugzilla that this issue has been fixed, but it's unclear to 
me which version has the fix.  Should I be seeing the fixed version with 
the version I'm using?

Bryan

> 
> Best regards



More information about the Gdal-dev mailing list