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”:
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:
setx PATH “%PATH%;C:\OSGeo4W64\bin” setx GDAL_DATA “C:\OSGeo4W64\share\gdal” setx PROJ_LIB "C:\OSGeo4W64\share\proj"
For a 32bit OSGeo4W install:
setx PATH “%PATH%;C:\OSGeo4W\bin” setx GDAL_DATA “C:\OSGeo4W\share\gdal” setx PROJ_LIB "C:\OSGeo4W\share\proj"
Restart your command prompt.
'org2ogr' is not recognized as an internal or external command, operable program or batch file.