Skip to content
Matt Walker edited this page Jan 9, 2013 · 13 revisions

Windows

  1. 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
  2. Install GDAL and python using the OSGeo4W Installer from http://trac.osgeo.org/osgeo4w/
  3. Download and run the OSGeo4W Installer
  4. Choose Advanced Install
  5. On the Select Packages page expand Commandline_Utilities and Select from the list gdal and python
  6. Install easy_install to allow you to install lxml
  7. Download the ez_setup.py script
  8. Open the OSGeo4W Shell (Start > Programs > OSGeo4W > OSGeo4W > OSGeo4W Shell)
  9. Change to the folder that you downloaded ez_setup.py to (if you downloaded to C:\Temp then run cd C:\Temp)
  10. Install easy_install by running python ez_setup.py
  11. 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:

  1. First configure the loader by editing loader.config in a text editor (see Configuration Examples)
  2. Open the OSGeo4W Shell by choosing Start > Programs > OSGeo4W > OSGeo4W > OSGeo4W Shell
  3. Navigate to the python folder of the loader (if you've extracted the loader to C:\Temp\Loader then cd C:\Temp\Loader\python)
  4. Run the loader by running python loader.py loader.config
  5. 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.

Running Loader from a batch file on Window

If you want to automate the process of running Loader in a batch file then Gist #4492765 may help.

Clone this wiki locally