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 change to a value between 0 and 255.

I tried all possible combinations of the following commands with no succes:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.