[gdal-dev] gdal_translate multiplies bands

Oechslin Stefan Maximilian stefan.oechslin at bfh.ch
Wed Sep 30 06:59:03 PDT 2020


Hi

I try to use gdal_translate in my windows command prompt to convert a single band .tif raster to a single band .gpkg.

gdal_translate -of GPKG example.tif example.gpkg

I always get a .gpkg with four bands and the nodata pixels get changed to a value of 255.
I tried all possible combinations of the following commands with no succes:

-band
-mask
-expand

Do you have any idea what I am missing?

Thanks
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200930/56bc0eb4/attachment.html>


More information about the gdal-dev mailing list