-
Notifications
You must be signed in to change notification settings - Fork 36
Installation
Matt Walker edited this page Jul 25, 2013
·
13 revisions
- Download the ZIP file of Loader from https://github.com/AstunTechnology/Loader/archive/master.zip and extract the contents to a folder that you can remember
- Install GDAL and python 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 from the list gdal and python
- Install easy_install to allow you to install lxml
- Download the python-distribute distribute_setup.py script
- Open the OSGeo4W Shell (Start > Programs > OSGeo4W > OSGeo4W > OSGeo4W Shell)
- Change to the folder that you downloaded distribute_setup.py to (if you downloaded to C:\Temp then run
cd C:\Temp
) - Install easy_install by running
python distribute_setup.py
- To install lxml with easy_install run
easy_install lxml==2.3
Once the above 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)
- 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 running
python loader.py loader.config
- If something goes wrong or you're not sure what's going on try running in debug mode by running:
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.
If you want to automate the process of running Loader in a batch file then Gist #4492765 may help.