Getting Setup With GDAL Manually

From Tuflow
Jump to: navigation, search

This page describes how to download and install the GDAL programs manually.


The pre-compiled GDAL programs and other binaries can be downloaded from the following location:

Gdal installation first download page.PNG
The page lists many download links:

  • Users should choose x64 Arch (architecture) if they are using a x64 bit operating system
  • The "MSVC" column is the compiler version. It generally doesn't matter except if you are trying to replicate a previously run GDAL Program results exactly, then you should use the compiler and GDAL version used to produce those results. For format conversion, generally the compiler won't have any affect.

On the next page users should select "Compiled binaries in a package"
Gdal installation second download page.PNG


There is no formal installation process required. The below steps are recommended as it will make running the programs a lot easier without needing to setup custom environment variables:

  1. Unzip the downloaded file into a location of your choice. For the examples below, it will be assumed that they were unzipped to "C:\GDAL".
  2. Navigate to the following directory in the unzipped directory "bin\gdal\apps". Following our chosen directory from step 1 this is "C:\GDAL\bin\apps".
  3. Copy all the files in the "app" directory into the "bin" directory ("C:\GDAL\bin")
  4. Create a new folder called "share" underneath the main directory, above the "bin" folder ("C:\GDAL\share")
  5. Create a new folder called "proj" underneath the new "share" folder ("C:\GDAL\share\proj")
  6. Copy all the files from the "bin\proj7\share" ("C:\GDAL\bin\proj7\share") into the newly created "share" folder

Running the Programs

The GDAL programs can now be used. Use the ".exe" programs that were copied into "C:\GDAL\bin" and not located in the original "apps" folder. For example the following batch file will use "gdal_translate.exe":

set gdal_translate="C:\GDAL\bin\gdal_translate.exe"
%gdal_translate% <conversion_commands>

However if you receive errors similar to "PROJ: proj_create_from_database: Cannot find proj.db" you should add this environment variable to the top of the batch file (Note: do not use quotes "" in path):

set PROJ_LIB=C:\GDAL\proj7\share
set gdal_translate="C:\GDAL\bin\gdal_translate.exe"
%gdal_translate% <conversion_commands>

Go-up.png Back to GDAL Tips and Tricks