Skip to content

nextgis/qgis_headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

374 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QGIS Headless Rendering

Headless rendering library using QGIS

Installation to Virtualenv

  1. Install dependecies:

    • QGIS >= 3.32
    • libqgis-dev
    • qt5-image-formats-plugins (usually installed via dependencies)
    • build-essential
    • cmake
  2. Create virtualenv, activate it and install the package there:

    $ python3 -m venv env
    $ source env/bin/activate
    $ pip install --editable ./[dev,tests]
  3. Run the tests:

    $ python -m pytest qgis_headless/test/

Running Python Tests in Docker

Ubuntu Jammy (for example):

$ docker build -t qgis_headless:jammy -f Dockerfile.jammy .
$ docker run --rm qgis_headless:jammy ./pytest-runner

Developer Notes

This project uses pre-commit to enforce code quality standards.

First, make sure pre-commit is installed:

$ pip install pre-commit

Then, enable it in the project by running:

$ pre-commit install

About

Headless rendering library using QGIS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors