Skip to content

Instantly share code, notes, and snippets.

@walkermatt
Last active December 10, 2015 21:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walkermatt/4492765 to your computer and use it in GitHub Desktop.
Save walkermatt/4492765 to your computer and use it in GitHub Desktop.
DOS batch file to run Loader (https://github.com/AstunTechnology/Loader) on Windows using GDAL and python provided by OSGeo4W (installation of which is documented on the wiki)
rem DOS batch file to run Loader on Windows using GDAL and python
rem provided by OSGeo4W. As this script requires the OSGeo4W environment
rem to run it must be passed as an argument to OSGeo4W.bat like so:
rem call C:\OSGeo4W\OSGeo4W.bat C:\Temp\Loader\run_loader.bat
rem Change to the folder that this script is in (assumes this script is
rem in the same folder as the Loader readme)
cd /D %~dp0
rem change to the python directory
cd python
rem Run Loader logging everything to the same file
python -u loader.py loader.config 1>> ..\loader.log 2>>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment