[gdal-dev] Issue with writen colortables

Joaquim Manuel Freire Luís jluis at ualg.pt
Thu Mar 26 16:19:47 PDT 2020


Funny, I made it nodata = 1 and the zero moved to second place.

[cid:image002.jpg at 01D603C5.0A070080]

From: Even Rouault <even.rouault at spatialys.com>
Sent: Thursday, March 26, 2020 8:47 PM
To: gdal-dev at lists.osgeo.org
Cc: Joaquim Manuel Freire Luís <jluis at ualg.pt>
Subject: Re: [gdal-dev] Issue with writen colortables


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/020f3747/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 41621 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200326/020f3747/attachment-0001.jpg>


More information about the gdal-dev mailing list