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

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

From: Even Rouault <even.roua...@spatialys.com>
Sent: Thursday, March 26, 2020 8:47 PM
To: gdal-dev@lists.osgeo.org
Cc: Joaquim Manuel Freire Luís <jl...@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
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to