Every time I open and close a raster layer in QGIS it creates an xml file for that raster when closing. While I do a lot of automatic processing this really bugs me, since I have to add every time when I request a file list to exclude xml files. I just want QGIS to stop doing this, so do any of you know where to turn this off?


Are the xml files *.aux.xml?

If so, it's not QGIS creating them, it's the GDAL library which uses them to store metadata, including statistics. You can disable completely by setting the environment variable GDAL_PAM_ENABLED=NO though I don't advise this if you'll be displaying the rasters again as there won't be any statistics cached.

Instead, you can tell GDAL to store the aux.xml files in another directory by setting the environment variable GDAL_PAM_PROXY_DIR=some_folder

  • Hi Luke, it does indeed create an aux.xml file. Could you tell me how to change these settings of GDAL? I'm working on Ubuntu and I tried adding it to the .bashrc file, but with no effect. – jonas van duijvenbode Feb 24 '15 at 6:28
  • Found it in QGIS-Settings-Environment Settings – jonas van duijvenbode Feb 24 '15 at 8:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.