Re: [gdal-dev] gdal_translate multiplies bands

2020-09-30 Thread jratike80
Hi, Perhaps it is just about how you open your GeoPackage. See https://gdal.org/drivers/raster/gpkg.html: "Opening options 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 t

[gdal-dev] gdal_translate multiplies bands

2020-09-30 Thread Oechslin Stefan Maximilian
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