Headless rendering library using QGIS
-
Install dependecies:
libqgis-dev
qt5-image-formats-plugins
(usually installed via dependencies)build-essential
cmake
-
Create virtualenv, activate it and install the package there:
$ python3 -m venv env $ source env/bin/activate $ pip install --editable ./[tests]
-
Run the tests:
$ python -m pytest qgis_headless/test/
Ubuntu Jammy (for example):
$ docker build -t qgis_headless:jammy -f Dockerfile.jammy .
$ docker run --rm qgis_headless:jammy ./pytest-runner