OpenGIS Tools


This repo makes extensive use of a single virtualenv and pip install -e

Linux / OSX

To get things going run ./scripts/


This will:

  1. Create a virtualenv that all the packages in this repo can use
  2. Install some trick prerequisites like GDAL, Cython, Scipy and rasterio etc.
  3. Run pip install -e on each repo to link them up.


  1. Install python 3.8.3
  2. Install C++ build tools:
  3. Install git bash and make sure VSCode has this set as its default terminal
  4. Install virtualenv in the root using pip install virtualenv

Go and get the wheel files.

You’ll need these. Actual file names may vary if you have a slightly different version of python cp38 ==> python 3.8


once you’ve downloaded these make sure to pip install them OUTSIDE of any virtualenv (so just pip install in terminal)

pip install Cython-0.29.21-cp38-cp38-win_amd64.whl

Now run ./scripts/ from the root of this repo using git bash

VSCode Settings

Minor note: for windows machines the pythonpath should be:

"python.pythonPath": "../../.venv/scripts/python.exe",

CAVEAT: You will need to select a new interpreter for windows and this means that your settings.json files will constantly show up as having been changed. Please don’t commit these files to git as they will change the environment for everyone else.

Microsoft is looking into platform-specific settings for VSCode but these haven’t been implemented yet so we’re ahead of the curve.

  "python.pythonPath": "../../.venv/bin/python",
  "[python]": {
    "editor.tabSize": 4,
    "editor.formatOnSave": true,
  "python.linting.enabled": true,
  "python.linting.lintOnSave": true,
  "python.linting.pycodestyleEnabled": true,
  "python.linting.pylintEnabled": true,
  "python.linting.pycodestyleArgs": [
  "python.formatting.autopep8Args": [
  "python.terminal.activateEnvironment": true,
  "python.autoComplete.showAdvancedMembers": false,
  "files.exclude": {
    "**/*.egg-info": true
  "files.watcherExclude": {
    "**/*.egg-info/**": true
  "search.exclude": {
    "**/*.egg-info": true