Ah, thanks. So the solution is to not call GDALSetRasterNoDataValue() unless we really want to set one color as transparent.
From: Even Rouault <[email protected]> Sent: Thursday, March 26, 2020 11:24 PM To: Joaquim Manuel Freire Luís <[email protected]> Cc: [email protected] Subject: Re: [gdal-dev] Issue with writen colortables On jeudi 26 mars 2020 23:19:47 CET Joaquim Manuel Freire Luís wrote: > Funny, I made it nodata = 1 and the zero moved to second place. Fully determinstic behaviour: GDAL sets the alpha component of the entry in the color table whose value is nodata to 0: https://github.com/OSGeo/gdal/blob/master/gdal/frmts/png/pngdataset.cpp#L1820 -- Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
