ghislainv / deforisk-qgis-plugin

📦 🐍 🌎 deforisk QGis plugin for creating and comparing risk maps of deforestation in the tropics
https://deforisk-qgis-plugin.org
GNU General Public License v3.0
1 stars 0 forks source link

Use tasks to perform heavy computations in the background #1

Closed ghislainv closed 5 months ago

ghislainv commented 8 months ago

This will avoid QGIS to freeze.

See tutorial here: https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/tasks.html

ghislainv commented 5 months ago

Done. QgsTaskManager has also been used to parallelize long running background tasks. For example, prediction tasks using three statistical models at two dates (6 tasks) are run in parallel.