SAGA 7.8 comes with saga4qgis and it provides support for SAGA Algorithms through QGIS Processing Toolbox.
This is a short instruction to install saga4qgis into QGIS 3.16, on Windows10 environment.
(1) Download latest SAGA
Visit SAGA in SorceForge.net, and download the latest zipped version of SAGA (i.e. saga-7.8.2_x64.zip).
(2) Unzip downloaded SAGA and search for saga4qgis.zip file.
(3) Unzip saga4qgis.zip
You will find two files and a folder.
readme.txt: This is the instruction (see below).
description (folder with lots of description files)
readme.txt - it is short and sweet
Replace the SAGA binaries in:
> C:\Program Files\QGIS X.Y\apps\saga(-ltr)
Adjust the interface in:
> C:\Program Files\QGIS X.Y\apps\qgis(-ltr)\python\plugins\processing\algs\saga(-ltr)
Adjust version in file:
>> REQUIRED_VERSION = '7.7.'
(4) Folow the instruction as written in
That's it - below is my note but it has no additional information.
- Open up
[aa] C:\Program Files\QGIS 3.16\apps\saga-ltr folder and delete all files inside it.
- Copy all files of unzipped
saga-7.8.2_x64.zip to the above folder
- Open up
[bb] C:\Program Files\QGIS 3.16\ apps\ qgis\ python\ plugins\ processing\ algs\ saga and search for SagaNameDecorator.py file. Replace this file by new
SagaNameDecorator.py (which is in
- In the same
[bb] folder, find SagaAlgorithmProvide.py and open it by a text editor (e.g. Notepad++). Change
REQUIRED_VERSION = '2.3.' to
REQUIRED_VERSION = '7.7.'.
- You will find description folder in the same
[bb] folder. Delete all files in this
[bb]\description folder, and copy all description files in
saga4qgis\description into this.
- Start QGIS 3.16 and examine QGIS Processing Toolbox.