diff options
| -rw-r--r-- | gui/scripts/README.md | 13 | ||||
| -rwxr-xr-x[-rw-r--r--] | gui/scripts/extract-geo-data.py | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gui/scripts/README.md b/gui/scripts/README.md index c8577e088a..cd9b723045 100644 --- a/gui/scripts/README.md +++ b/gui/scripts/README.md @@ -3,13 +3,20 @@ This is a folder with the supporting scripts written in Python 3, node, bash. ## Dependency installation notes -1. Run the following command in terminal to install python dependencies: +1. Install GDAL/OGR dependencies, which are required by Fiona python package. + + You can install GDAL via Homebrew on macOS: + `brew install gdal` + + For other platforms, please follow the guide on https://gdal.org/download.html#binaries + +2. Run the following command in terminal to install python dependencies: `pip3 install -r requirements.txt` -2. Run `npm install -g topojson-server` to install `geo2topo` tool which is +3. Run `npm install -g topojson-server` to install `geo2topo` tool which is used by python scripts to convert GeoJSON to TopoJSON -3. Make sure you have gettext utilities installed. +4. Make sure you have gettext utilities installed. https://www.gnu.org/software/gettext/ diff --git a/gui/scripts/extract-geo-data.py b/gui/scripts/extract-geo-data.py index 1b18e792c9..f9e9def1a7 100644..100755 --- a/gui/scripts/extract-geo-data.py +++ b/gui/scripts/extract-geo-data.py @@ -13,9 +13,9 @@ from polib import POFile, POEntry import colorful as c from terminaltables import AsciiTable +import fiona # import order is important, see https://github.com/Toblerity/Shapely/issues/553 from shapely.geometry import shape, mapping -import fiona SCRIPT_DIR = path.dirname(path.realpath(__file__)) |
