22.1. Introduzione

Questo capitolo introduce l’ambiente di processing QGIS, un ambiente di elaborazione di dati geografici grazie al quale potrai usare algoritmi nativi di |qg| e algoritmi di terze parti. In questo modo le attività di analisi spaziale saranno molto più produttive e facile da realizzare.

As a Core plugin, Processing is installed by default but you need to activate it:

  1. Go to Plugins ▶ Manage and install plugins…

  2. Click on the Installed tab at the left

  3. Check the box next to the processing Processing entry

  4. Close the dialog.

    A Processing menu is now available in the top menu bar. From there you can reach the main components of this framework.

Nella sezione seguente esamineremo come usare gli elementi grafici di questo ambiente e come ottenere il massimo da ciascuno di essi.

There are four basic elements in the framework GUI, which are used to run algorithms for different purposes. Choosing one tool or another will depend on the kind of analysis that is to be performed and the particular characteristics of each user and project. All of them (except for the batch processing interface, which is called from the toolbox or the algorithm execution dialog, as we will see) can be accessed from the Processing menu item (you will see more entries; the remaining ones are not used to execute algorithms and will be explained later in this chapter).

  • The Toolbox: The main element of the GUI, it is used to execute a single algorithm or run a batch process based on that algorithm.

../../../_images/toolbox3.png

Fig. 22.1 Strumenti di Processing

  • The Graphical Modeler: Several algorithms can be combined graphically using the modeler to define a workflow, creating a single process that involves several subprocesses.

../../../_images/models.png

Fig. 22.2 Modellatore Grafico

  • The History manager: All actions performed using any of the aforementioned elements are stored in a history file and can be later easily reproduced using the history manager.

../../../_images/history2.png

Fig. 22.3 Cronologia Processing

  • The Batch Processing interface: This interface allows you to execute batch processes and automate the execution of a single algorithm on multiple datasets.

../../../_images/batch_processing.png

Fig. 22.4 Interfaccia del processo in serie

Nelle sezioni seguenti rivedremo in dettaglio ciascuno di questi elementi.