2.5. Advanced installation using Conda

2.5.1. QGIS download and installation with the dependencies

The Semi-Automatic Classification Plugin requires Remotior Sensus, GDAL, NumPy and SciPy for most functionalities.

QGIS and the dependencies can be installed using a Conda environment (if you don’t know Conda please read https://conda-forge.org/docs). For instance, you can use Miniforge to create a Conda environment.

Once installed conda, open the terminal and run the following commands to create a new environment:

$ conda create -c conda-forge --name environment python=3.10
Proceed ([y]/n)? y
$ conda activate environment

Now install QGIS and the dependencies (it could take some time):

$ conda install -c conda-forge qgis gdal remotior-sensus scikit-learn pytorch

Now, QGIS is installed. To launch it run in the terminal:

$ qgis
_images/QGIS.jpg

2.5.2. Semi-Automatic Classification Plugin installation

  • Run QGIS;

  • From the main menu, select Plugins > Manage and Install Plugins;

_images/install.jpg
  • From the menu All, select the Semi-Automatic Classification Plugin and click the button Install plugin;

_images/plugins.jpg
  • The SCP should be automatically activated; however, be sure that the Semi-Automatic Classification Plugin is checked in the menu Installed (the restart of QGIS could be necessary to complete the SCP installation);

_images/plugins_installed.jpg

2.5.3. Configuration of the plugin

Now, the Semi-Automatic Classification Plugin is installed and a dock and a toolbar should be added to QGIS. Also, a SCP menu is available in the Menu Bar of QGIS. It is possible to move the toolbar and the dock according to your needs, as in the following image.

_images/SemiAutomaticClassificationPlugin.jpg

The configuration of available RAM is recommended in order to reduce the processing time. From the SCP menu select settings_tool Settings > Processing .

_images/settings_processing.jpg

In the Налаштування, set the Available RAM (MB) to a value that should be half of the system RAM. For instance, if your system has 2GB of RAM, set the value to 1024MB.

_images/settings_processing_tab.png

2.5.4. Update of required dependencies

The dependency Remotior Sensus is frequently updated. The Semi-Automatic Classification Plugin can check automatically if a new version is available, and display a message in the SCP dock.

_images/remotior_sensus_update.png

It is recommended to close QGIS and update Remotior Sensus using activating the conda environment and running the command:

$ conda update -c conda-forge remotior-sensus