[gdal-dev] Issue with writen colortables
Joaquim Manuel Freire Luís
jluis at ualg.pt
Thu Mar 26 16:41:57 PDT 2020
Ah, thanks. So the solution is to not call GDALSetRasterNoDataValue() unless we really want to set one color as transparent.
From: Even Rouault <even.rouault at spatialys.com>
Sent: Thursday, March 26, 2020 11:24 PM
To: Joaquim Manuel Freire Luís <jluis at ualg.pt>
Cc: gdal-dev at lists.osgeo.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200326/a5c021ff/attachment.html>
More information about the gdal-dev
mailing list