I am using gdal_translate to convert a fairly large geoTiff to MBTiles.
As the geoTiff is reprojected, it is not square anymore in Google Mercator and the parts that are not covered appear black when I would like them to be transparent.
I think it could have something to do with the -a_nodata parameter and I have tried with "-a_nodata 0", but it did not change things.
I have tried with both PNG8 and PNG. It did not change things either.
Here is what my command looks like:
gdal_translate -a_nodata 0 -of MBTILES -co TILE_FORMAT=PNG8 France.tif france.mbtiles
Any idea what I am doing wrong?
-dstnodata "255 255 255 0"
to set transparency for the empty space? (I am assuming you data has RGBA bands, as you are trying to make MBTiles-PNG).