I read nice tutorial about making transparent DEM TIFF on (Creating transparent hillshade?)
My Goal is creating transparent PNG tiles from transparent GeoTIFF for serving my own TMS map service.
I followed tutorial with SRTM1 N35E128.hgt dem file
gdaldem hillshade c:\n35e128.hgt c:\hillshade.tmp.tif -s 111120 -z 5 -az 315 -alt 60 -compute_edges
gdal_calc -A c:\hillshade.tmp.tif --outfile=c:\opacity.tif --calc="255-A"
gdalbuildvrt -separate c:\final.vrt c:\hillshade.tmp.tif c:\opacity.tif
gdal_translate -of Gtiff c:\final.vrt c:\final.tif
At last I got final.tif (please check attatched file)
----> https://mega.nz/#!2XYhiQoY!YPzrS0Z_9CGvIJIRkkSDlJ5M3biW9gvrGr7SHSNjYnU
then I execute
gdal2tiles -z 13 c:\final.tif c:\output
But output PNG files are not transparent at all.
(nodata
option or -a 0,0,0,0
wasn't effective)
And then I open the tif file with glabal mapper and export TMS tiles (with trnasparent png option checked) but the result was the same. Just blank area of tile was transparent.
I want transparent tile like this. It's fully transparent.
How can I get transparent png tiles (TMS) ?