[gdal-dev] Issue with writen colortables

Even Rouault even.rouault at spatialys.com
Thu Mar 26 13:46:50 PDT 2020


On jeudi 26 mars 2020 19:58:52 CET Joaquim Manuel Freire Luís wrote:
>  images created with GMT but via GDAL.
> The .tif file looks right but if look at the .png (it needs lots of zoom) we
> can see that the top left pixel is missing. That happens, I think, because
> the transparency column has a first value of 0 whilst all the others are
> 1's. I checked this both with

You should probably not set the nodata value to 0. This will cause the alpha 
component for entry 0 of the color table to be set to 0 when writing PNG

Even


-- 
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/842455fc/attachment.html>


More information about the gdal-dev mailing list