gdal2tiles format of argument for the '--srcnodata' flag

المشرف العام

Administrator
طاقم الإدارة
When you run gdal2tiles, by default it sets pixels outside your map area to black-transparent. I would like to set them to white opaque. Looking at the documentation... http://www.gdal.org/gdal2tiles.html

it looks like the setting --srcnodata=NODATA might do it, but it doesnt explain what the allowed values for the 'NODATA' argument are. I have made various attempts but they had no effect e.g...

gdal2tiles -r near --srcnodata=255 -z12-12 in.tiff outDirectory



أكثر...
 
أعلى