Difference between revisions of "Getting Setup With GDAL Using QGIS Installation"

From Tuflow
Jump to navigation Jump to search
(Created page with "If you have QGIS installed, you will also have GDAL installed. The GDAL programs will be located within the QGIS installation directory, usually within the "bin" folder. As an...")
 
Line 1: Line 1:
 
If you have QGIS installed, you will also have GDAL installed. The GDAL programs will be located within the QGIS installation directory, usually within the "bin" folder. As an example:<br>
 
If you have QGIS installed, you will also have GDAL installed. The GDAL programs will be located within the QGIS installation directory, usually within the "bin" folder. As an example:<br>
 
<pre>C:\Program Files\QGIS 3.24.1\bin</pre>
 
<pre>C:\Program Files\QGIS 3.24.1\bin</pre>
The GDAL programs should be ready to use as they are. For example the following batch file:<br>
+
The GDAL programs should be ready to use as they are. For example the following batch file will use "gdal_translate.exe":<br>
 
<pre>
 
<pre>
 
set gdal_translate="C:\Program Files\QGIS 3.24.1\bin\gdal_translate.exe"
 
set gdal_translate="C:\Program Files\QGIS 3.24.1\bin\gdal_translate.exe"

Revision as of 01:11, 12 April 2022

If you have QGIS installed, you will also have GDAL installed. The GDAL programs will be located within the QGIS installation directory, usually within the "bin" folder. As an example:

C:\Program Files\QGIS 3.24.1\bin

The GDAL programs should be ready to use as they are. For example the following batch file will use "gdal_translate.exe":

set gdal_translate="C:\Program Files\QGIS 3.24.1\bin\gdal_translate.exe"
%gdal_translate% <conversion_commands>

However if you receive errors while trying to assign projections (or any error when working with projections) you should add this environment variable to the top of the batch file (Note: do not use quotes "" in path):

set PROJ_LIB=C:\Program Files\QGIS 3.24.1\share\proj
set gdal_translate="C:\Program Files\QGIS 3.24.1\bin\gdal_translate.exe"
%gdal_translate% <conversion_commands>