Setting up your GDAL and OGR Environmental Variables

I recently upgraded to Windows 10, and have been setting up my GIS workspace settings.

Setting up your Windows path environmental variables can easily be done through the command line.

These commands can be run directly in the command line and don’t require a computer restart to take effect. To run the command prompt, simply open up the windows search (Windows Key + S) and search for “cmd”:

Screenshot[3]

Then run the command to add the path.

Update: PROJ_LIB also needs to be set, to prevent “PROJ: proj_create_from_wkt: Cannot find proj.db” errors.

For a 64bit OSGeo4W install:

For a 32bit OSGeo4W install:

Screenshot[6]

Restart your command prompt.

Screenshot[7]

Success.

No more:
‘org2ogr’ is not recognized as an internal or external command, operable program or batch file.

1 thought on “Setting up your GDAL and OGR Environmental Variables

  1. Pingback: Setting up your GDAL and OGR Environmental Variables in Windows 10 | Geo-How-To News

Leave a Reply

Your email address will not be published. Required fields are marked *