-
Notifications
You must be signed in to change notification settings - Fork 36
Installation
Matt Walker edited this page Mar 15, 2012
·
13 revisions
- Download the ZIP file of the loader from https://github.com/AstunTechnology/Loader/downloads and extract the contents to a folder that you can remember
- Install Python 2.7 using the MSI Installer from http://www.python.org/getit/releases/2.7/
- Install LXML 2.3 for Python 2.7 using the MS Windows installer from http://pypi.python.org/pypi/lxml/2.3/
- Install GDAL 1.8 using the OSGeo4W Installer from http://trac.osgeo.org/osgeo4w/
- Download and run the OSGeo4W Installer
- Choose Advanced Install
- On the Select Packages page expand Commandline_Utilities and Select gdal (1.8.x ) from the list
Once the following has been installed you should have everything required to run the loader. To run the loader:
- First configure the loader by editing loader.config in a text editor (see Configuration Examples), you may need to provide the full path to Python in the
prep_cmd
if python.exe is not in yourPATH
, changingprep_cmd=python ...
toprep_cmd=C:\\python27\\python ...
- Open the OSGeo4W Shell by choosing Start > Programs > OSGeo4W > OSGeo4W > OSGeo4W Shell
- Navigate to the python folder of the loader (if you've extracted the loader to C:\Temp\Loader then
cd C:\Temp\Loader\python
) - Run the loader by entering the following command
C:\python27\python loader.py loader.config
- If something goes wrong or you're not sure what's going on try running in debug mode by entering:
C:\python27\python loader.py loader.config debug=True
. Debug mode prints out more information as the loader runs and will leave the temporary files it creates.