Feature request #11688
Translate (convert format): add a batch option that creates outputs with the name of the corresponding input
|Pull Request or Patch supplied:||No||Resolution:|
It would be nice to add a "Batch GDAL translate" algorithm that converts a number of rasters stored in a folder and stores the outputs (with the same name as the input) in another folder. The built in batch processing engine creates temporary rasters stored in /temp. If the user wishes to alter their name and its storage location, he/she has to do it manually.
This is an example bash script that I found here that does what I propose: http://gis.stackexchange.com/questions/54819/gdal-translate-converting-esri-grid-to-geotiff-in-batch
for FILE in arcgis_folders_here/*
echo "Processing $FILE file..."
gdal_translate -a_srs "+proj=tmerc +lat_0=39.668258 +lon_0=-8.133108 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs" -of GTiff $FILE $FILE.tif