I have some .bil files that I would like to convert into ASCII Gridded XYZ format files.
It seems to work well with the Raster>Translate tool of QGIS when I process one file at a time. But I would like to do it by batch. So I checked the batch box but got this error message:
Processing of the following files ended with error:
C:/Users/Fall Line Tower/Desktop/Bil To Be Processed/Only Bill/PRISM_tmax_stable_4kmD1_19810101_bil.bil
ERROR 4: `C:/Users/Fall Line Tower/Desktop/Bil To Be Processed/Onli Bill/PRISM_tmax_stable_4kmD1_19810101_bil.bil' not recognised as a supported file format.
GDALOpen failed – 4
I have the same error message for each .bil file within my source directory.
Any idea where the problem comes from?
Does the batch mode take only one type of format?
Not the .bil?
I am using QGIS 2.2 on Windows 7.
Best Answer
write this Python code and launch it:
or you can also launch it from the dos command prompt