knitr::opts_chunk$set( #fig.path = "https://raw.githubusercontent.com/r-spatial/link2GI/master/figures/", fig.align = "center", collapse = TRUE, comment = "#>" )
The vignette is a slightly modified version of the installation guide of the archived RQGIS package. Many thanks to Patrick Schratz and Jannis Muenchow.
This vignette guides you through the installation process of QGIS, GRASS and SAGA-GIS as well as Orfeo Toolbox and GDAL on three different platforms (Windows, Mac, Linux). Following the instructions should ensure that link2GI works properly. With the exception of SAGA (SAGA is quite idiosyncratic in terms of interface compatibility), we recommend using the latest stable version of all software packages.
Overall, link2GI provides access to more than a few thousand reliable and well-known geoalgorithms. Please note, however, that the number of geoalgorithms you can use with link2GI depends on the platform, the system architecture, the selection of installed third-party providers, and the software package versions.
There are at least two ways to install QGIS on Windows. The first option is the standalone installer from the [QGIS installer page] (https://www.qgis.org/download/). This will install QGIS along with the third party GRASS and SAGA. If you want to use even more third party applications (e.g. GDAL, GEOS, Taudem, OTB, PostGIS, etc.) it is strongly recommended to use the OSGeo4W network installer. This installer is available on the QGIS installer page as well as on the OSGeo4W website.
NOTE: Do not install QGIS 2.x.
The easiest way to install OSGeo4W is to use the express installation:
Sorry for the German dialogs. However, it should be easy enough to follow our steps.
This installation is more or less the same as the standalone QGIS installation. However, to get the full range of geoalgorithms available in QGIS, we recommend using the advanced settings of the OSGeo4W Network installer:
Additionally we choose the Desktop-GIS GRASS, the Orfeo Toolbox, SAGA and QGIS (even if they are not directly supported by link2GI at the moment). We install the latest QGIS 3.x version as well as the long term release.
Clicking "Next" again will start the download and installation process, which may take a while.
If you want to change, uninstall or update some of the installed components, you can do so later by running ../OSGeo4W/bin/osgeo4w-setup.exe
.
Alternatively, you can download the latest [OSGeo4W-executable] (https://trac.osgeo.org/osgeo4w/) and run it again.
If you also want to use the LiDAR processing tools (LAStools), please follow the steps found here.
Please download the latest (currently OTB-7.2.0-Win64) or a suitable version of the Orfeo Toolbox software. Then follow the OTB team's advice:
"We provide standalone binaries for Windows that do not require administrative privileges. Download the archive below (32 or 64 bit) and extract it to a location of your choice. Double-click monteverdi.bat to start Monteverdi, or mapla.bat for the OTB application browser. Please refer to the CookBook for detailed installation instructions.
If you install QGIS using the built-in software managers, you will most likely end up with an outdated version of QGIS. To install more recent versions of QGIS, we recommend following the installation instructions from the [QGIS installers website] (https://www.qgis.org/download/).
Here we only describe the installation of QGIS on Debian/Ubuntu as described here. link2GI should also work on Linux distributions other than Ubuntu. However, only Ubuntu, Debian and Manjaro have been tested.
Open a terminal window. First, make sure to remove any QGIS and GRASS packages you may have previously installed from other repositories:
sudo apt-get --purge remove qgis sudo apt autoremove --purge-remove sudo apt autoremove sudo apt-get update
Next add the correct repository to /etc/apt/sources.list
.
Here, we use the current long-term release (3.10):
QGIS 3.3x.x for Ubuntu 22.04
# install necessary tools sudo apt install gnupg software-properties-common #add the required keys wget -qO - https://qgis.org/downloads/qgis-2020.gpg.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import # verify the key gpg --fingerprint 51F523511C7028C3 # add the repository # if there are problems sudo add-apt-repository "deb https://qgis.org/debian lsb_release -c -s main" # if there are problems use the hard-wired "focal" release sudo add-apt-repository "deb https://qgis.org/debian focal main"
After that, we can install QGIS and GRASS saga and Orfeo Toolbox as follows:
# install qgis grass otb saga
sudo apt update
sudo apt install qgis python-qgis qgis-plugin-grass grass saga otb-bin
If you would like to use another SAGA version, you need to compile it yourself (see here). Please note, however, that QGIS currently only supports the SAGA LTR 2.3.x as far as we know.
You can install various QGIS, SAGA and GRASS versions from the Arch User Repository.
You can install current stable QGIS, SAGA and GRASS GIS versions via the standard software package manager:
sudo dnf install qgis-python qgis qgis-grass saga grass-gui grass-libs
There is no binary install of SAGA for macOS.
We recommend to use the bottle installation from homebrew
:
# brew tap osgeo4mac
brew install saga-gis-lts
brew link saga-gis-lts --force
If you do not link SAGA with force, QGIS will not be able to detect SAGA.
Alternatively, you can compile SAGA from source from the SAGA website. However, this is tedious and QGIS2 only supports the SAGA LTS version.
You can install GRASS6/7/8 via homebrew
:
# brew tap osgeo4mac
brew install grass6 grass7 grass8
The binary GRASS installation can be found here.
However, we recommend to use the homebrew
approach.
When installing GRASS independently of QGIS via homebrew
, please make sure to install it before you have installed QGIS.
Two options exist installing QGIS on macOS
homebrew
(recommended)# brew tap osgeo4mac brew install qgis3
Check brew info qgis3
for more available options.
However, if you use them, QGIS will be compiled from source which may take > 30 min (depending on your system).
Otherwise, pre-built bottles (= binaries) will be used which speeds up the installation process a lot.
Note: Make sure to install SAGA and GRASS before QGIS so that QGIS finds the correct paths.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.