Skip to content

Latest commit

 

History

History
118 lines (71 loc) · 3.6 KB

installation_conda.rst

File metadata and controls

118 lines (71 loc) · 3.6 KB

Cross-platform installation using Conda

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 in a Conda environment using Mamba, which is a cross-platform package manager (if you don't know Mamba please read https://mamba.readthedocs.io).

First, install Miniforge to create a Conda environment. Once installed, open the terminal and run the following commands to create a new environment:

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

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

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

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

$ mamba activate environment
$ qgis

_static/installation/QGIS.jpg

Semi-Automatic Classification Plugin installation

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

_static/installation/install.jpg

  • From the menu All, select the Semi-Automatic Classification Plugin and click the button Install plugin;

_static/installation/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);

_static/installation/plugins_installed.jpg

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.

_static/installation/SemiAutomaticClassificationPlugin.jpg

The configuration of available RAM is recommended in order to reduce the processing time. From the :ref:`SCP_menu` select settings_tool Settings > Processing .

_static/installation/settings_processing.jpg

In the :ref:`settings_tab`, 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.

_static/interface/settings_processing_tab.png

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 :ref:`scp_dock`.

_static/installation/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