David Strip <gdal <at> stripfamily.net> writes: > > In my previous email, I laid out a process that seems to work for me. > Now I realize that while this works for a single input file, how do I > generalize it to work on a set of tiles? > At first I naively thought I could just replace the SourceFileName and > re-run the gdal_translate -of gtiff step, but since the location is > embedded in the vrt, every tile would end up in the same place. > How do I generalize this process so I can reuse the edits to the .vrt?
Partial solution could be to use gdalbuildvrt http://www.gdal.org/gdalbuildvrt.html Running gdalbuildvrt alltiles.vrt *.tif will create a vrt file with one common colortable and all tif files as separate SimpleSources. Changing them into ComplexSources and adding LUT blocks should be doable with a clever test editor. However, after running gdalbuildvrt you will have one dataset instead of bunch of tiles and if you want tiles back you will need to split the "alltiles.vrt" file somehow. If you do not need tiles you can avoid this and convert the whole vrt file into one single geotiff. -Jukka Rahkonen- _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev