I want to create a mosaic of all tif files in a directory on windows 7.
How could I create a one-line command in the windows command line to loop through all tifs and merge them all together using gdal_merge.py?
I tried this;
for %i in (*.tif) do gdal_merge.py -of GTiff %i mosaic.tif
but it gives me an error about mosaic not being a supported dataset name??
gdal_merge.py -optfile list.txtdoes not work using osgeo4w (i.e., under Windows). Throws a DLL Load failed exception – GT. Mar 06 '15 at 20:24gdal_merge, a script exists to kludgegdal_mergewildcards into Windows gdal, but I haven't tried it. See http://trac.osgeo.org/gdal/wiki/UserDocs/GdalMerge – GT. Mar 06 '15 at 20:34