I've carefully cut the collar off a set of USGS geotifs and I'd like to run through them with gdal2tiles but producing a vrt that undersands the alpha layer, or having gdal2tiles overlap two source files into one tile is not working. Some things I have tried have made all black pixels transparent. Other attempts rendered the transparent borders on my source files as if they were solid white, so when one tile is made from two adjoining tifs the transparent border from one covers up the useful content of another. Here is my process, maybe someone can tell me a conversion step I'm missing:
أكثر...
- Download regular USGS geotif from Topoquest
- gdal_translate -expand rgba -co COMPRESS=LZW orginal.tif translated.tif
- Open translated.tif in Photoshop, cut off the collar, save.
- gdalcopyproj.py translated.tif prepared.tif
- gdalbuildvrt temp.vrt *.tif
- gdal2tiles.py temp.vrt tiles
أكثر...