According to this post it is possible to tweak GDAL globally via the configuration file. On the GDAL website I found the supposed location of the file - $(USERPROFILE)/.gdal/gdalrc - unfortunately, in my case under C:\Users\XXX.gdal\ I only find the folder "2.4" (although I have gdal 3.7 installed via OSGeo4W). Where else could be the gdalrc folder with the configuration file?
Asked
Active
Viewed 444 times
1
sn1ks
- 2,982
- 12
- 28
1 Answers
1
You can create it if it doesn't exist in %USERPROFILE%\.gdal\gdalrc.
In Windows Explorer file manager:
- type
%USERPROFILE%into the address bar (or navigate toC:\Users\your_username), - create the folder
.gdalthen - in that new folder create a text file
gdalrcand put the config options you want.
user2856
- 65,736
- 6
- 115
- 196
SET GDAL_CONFIG_FILE=c:\\the\path\that\i\want? By default the configuration file does not exist, you must create it yourself. – user30184 Aug 14 '23 at 08:19[OSGEO4W_root]/bindirectory. You can edit either that bat file directly, or the qgis-bin.env file in the same directory. – user30184 Aug 14 '23 at 08:45