Windows gdal treats NaN's as 0
|Reported by:||timlinux||Owned by:||warmerdam|
Description (last modified by )
This issue was originally diagnosed by Ismail Sunni of the InaSAFE project. In #3576 there was a similar issue filed so feel free to close this and reopen the original if appropriate.
When QGIS opens a shapefile that has a NaN value, it is read (incorrectly) as 0.0 in Windows but (correctly) as NaN is Linux. This causes some of our (InaSAFE) tests to fail under Windows.
We tested with QGIS compiled against GDAL/OGR 1.9.1 on both Linux and Windows.
We also tested using lower level ogr/python bindings and can replicate the issue there too so it is not QGIS specific.
I am attaching a sample data set that you can use to replicate the issue.
If you have any hints as to a possible work around for this (for clients stuck on 1.9.1) in the interim it would be most appreciated.