[gdal-dev] using NaN as no-data value

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon Mar 30 07:11:40 PDT 2026


Hi

I have seen some GeoTIFFs for DSMs (float32) with NaN as no-data value. It
was not set in the metadata, but worked as that. I think I have also seen
it with NaN set in the metadata.
Also many other numbers as no-data value, like -10000 or -9999 or -8888
(yes, and many other posible values).

Is there any reason to prefer or discourage NaN as a no-data value for a
float32 GeoTIFF?

Thank you
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20260330/1f5c4ed1/attachment.htm>


More information about the gdal-dev mailing list