[gdal-dev] GPKG : how to save tile into 1-band 8-bit PNG
Philippe Ghesquiere
philippe.ghesquiere at airbus.com
Sun Feb 15 22:41:32 PST 2026
Dear all,
*Some context*
In our system, we convert elevation data into Geopackage in order to use
them with mapcache/mapserver.
For our display needs, we save two layers in a GPKG file :
- a color-relief layer : saved as RGBA 8-bit PNG tiles
- a hillshade layer : saved as RGBA 8-bit PNG tiles
*My environment*
GDAL V3.8.4
*My question :*
Since a hillshade image is a gray-scale image, isn't it possible to save
tiles in 1-band 8-bit PNG + Alpha band, instead of RGB, into a PKG database?
I have tried several options with either gda_translate (-b 1, -ot Byte,
TILE_FORMAT=PNG or PNG8) or gdalwarp, with no success.
Thanks for any hints you could give me.
Sincerely
Philippe
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20260216/8d9b55d2/attachment.htm>
More information about the gdal-dev
mailing list