-
Notifications
You must be signed in to change notification settings - Fork 35
Installation
Matt Walker edited this page Dec 23, 2014
·
13 revisions
- Download the ZIP file of Loader from https://github.com/AstunTechnology/Loader/archive/master.zip and extract the contents to a folder
- 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
pip
to allow you to installlxml
- Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip by default, so you may have pip already, if you don't see the pip usage message when you run
pip
from the OSGeo4W Shell then install it as follows:- Download the script get-pip.py as detailed in the pip documentation
- Open the OSGeo4W Shell (Start > Programs > OSGeo4W > OSGeo4W > OSGeo4W Shell)
- Change to the folder that you downloaded
get-pip.py
to (if you downloaded to C:\Temp then runcd C:\Temp
) - Install
pip
by runningpython get-pip.py
- To install
lxml
runpip install lxml
- Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip by default, so you may have pip already, if you don't see the pip usage message when you run
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.