Skip to content
Matt Walker edited this page Dec 23, 2014 · 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
  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 pip to allow you to 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 pip from the OSGeo4W Shell then install it as follows:
      1. Download the script get-pip.py as detailed in the pip documentation
      2. Open the OSGeo4W Shell (Start > Programs > OSGeo4W > OSGeo4W > OSGeo4W Shell)
      3. Change to the folder that you downloaded get-pip.py to (if you downloaded to C:\Temp then run cd C:\Temp)
      4. Install pip by running python get-pip.py
      5. To install lxml run pip install lxml

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