23.1.6. Layer tools

23.1.6.1. Extract layer extent

Generates a vector layer with the minimum bounding box (rectangle with N-S orientation) that covers all the input features.

The output layer contains a single bounding box for the whole input layer.

../../../../_images/extract_layer_extent.png

Fig. 23.6 In red the bounding box of the source layer

Default menu: Vector ▶ Research Tools

23.1.6.1.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer

IN INGRESSO

[layer]

Input layer

Extent

LIVELLO IN USCITA

[vector: polygon]

Predefinito: [Crea livello temporaneo]

Specify the polygon vector layer for the output extent. One of:

  • Crea livello temporaneo (TEMPORARY_OUTPUT)

  • Salva come File…

  • Salva come Geopackage…

  • Salva su Tabella PostGIS…

La codifica del file può anche essere cambiata qui.

23.1.6.1.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Extent

LIVELLO IN USCITA

[vector: polygon]

Output (polygon) vector layer with the extent (minimum bounding box)

23.1.6.1.3. Python code

Algorithm ID: qgis:polygonfromlayerextent

import processing
processing.run("algorithm_id", {parameter_dictionary})

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Usare gli algoritmi di Processing dalla console dei comandi for details on how to run processing algorithms from the Python console.