[gdal-dev] gdal_translate multiplies bands
jukka.rahkonen at maanmittauslaitos.fi
Wed Sep 30 07:24:06 PDT 2020
Perhaps it is just about how you open your GeoPackage. See
By default, the driver will expose a GeoPackage dataset as a four band
(Red,Green, Blue,Alpha) dataset, which gives the maximum compatibility with
the various encodings of tiles that can be stored. It is possible to specify
an explicit number of bands with the BAND_COUNT opening option."
Oechslin Stefan Maximilian wrote
> 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
> Do you have any idea what I am missing?
> gdal-dev mailing list
> gdal-dev at .osgeo
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev