Well, maybe this is a little off topic for the gdal mailing list, but I recently had to deal with the same case, and wrote a small application in Orfeo ToolBox (>5.2) to do exactly that: map NaN to a real no data value [1]. So if you need this really quick, and can afford bringin another (quite big) tool in your workflow, here is a workaround.

In the long term, this would be a nice addition to gdal_translate capabilities.

Regards,

Julien

[1] https://www.orfeo-toolbox.org/CookBook/CookBooksu61.html#x85-1900004.1.7

Le 06/01/2016 23:59, Brad Hards a écrit :
I'm working on the geopackage elevation extension experiment, and trying to
produce some GeoTIFF tiles that get inserted into sqlite.

I need to remap the existing nodata (nan) to some other value that I can
insert into a sqlite table as a number (say zero).

I had a long explanation of what I'm doing here, but it is actually explained
in the docs: "Note that, if the input dataset has a nodata value, this does
not cause pixel values that are equal to that nodata value to be changed to
the value specified with this option. "

Is there an easy way to do that conversion?

Brad
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev


--
Julien MICHEL
CNES - DCT/SI/AP

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to