24.2.3. Estrazione Raster

24.2.3.1. Ritagliare raster da un” estensione

Clips any GDAL-supported raster file to a given extent.

Questo algoritmo è derivato da GDAL warp utility.

Default menu: Raster ► Extraction

24.2.3.1.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer in ingresso

INPUT

[raster]

Il raster in ingresso

Estensione di ritaglio

EXTENT

[estensione]

Extent that should be used for the output raster. Only pixels within the specified bounding box will be included in the output.

Assign a specified nodata value to output bands

Opzionale

NODATA

[numero]

Predefinito: None

Defines a value that should be inserted for the nodata values in the output raster

Opzioni addizionali di creazione

Opzionale

OPZIONI

[stringa]

Predefinito: “”

For adding one or more creation options that control the raster to be created (colors, block size, file compression…). For convenience, you can rely on predefined profiles (see GDAL driver options section).

Output data type

DATA_TYPE

[numero]

Predefinito: 0

Definisce il formato del file raster in uscita.

Opzioni:

  • 0 — Use Input Layer Data Type

  • 1 — Byte

  • 2 — Int16

  • 3 — UInt16

  • 4 — UInt32

  • 5 — Int32

  • 6 — Float32

  • 7 — Float64

  • 8 — CInt16

  • 9 — CInt32

  • 10 — CFloat32

  • 11 — CFloat64

Additional command-line parameters

Opzionale

EXTRA

[stringa]

Predefinito: None

Add extra GDAL command line options

Clipped (extent)

LIVELLO IN USCITA

[raster]

Predefinito: “[Salva in un file temporaneo]”

Specification of the output raster layer. One of:

  • Salva come File Temporaneo

  • Salva come File…

The file encoding can also be changed here

24.2.3.1.2. In uscita

Etichetta

Nome

Tipo

Descrizione

Clipped (extent)

LIVELLO IN USCITA

[raster]

Output raster layer clipped by the given extent

24.2.3.1.3. Codice Python

ID Algoritmo: gdal:cliprasterbyextent

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.

24.2.3.2. Clip raster by mask layer

Clips any GDAL-supported raster by a vector mask layer.

Questo algoritmo è derivato da GDAL warp utility.

Default menu: Raster ► Extraction

24.2.3.2.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer in ingresso

INPUT

[raster]

Il raster in ingresso

Mask layer

MASK

[vettore: poligono]

Vector mask for clipping the raster

SR di partenza

SOURCE_CRS

[sr]

Set the coordinate reference to use for the input raster

SR di destinazione

TARGET_CRS

[sr]

Set the coordinate reference to use for the mask layer

Assign a specified nodata value to output bands

Opzionale

NODATA

[numero]

Predefinito: None

Defines a value that should be inserted for the nodata values in the output raster

Create an output alpha band

ALPHA_BAND

[booleano]

Predefinito: False

Creates an alpha band for the result. The alpha band then includes the transparency values of the pixels.

Match the extent of the clipped raster to the extent of the mask layer

CROP_TO_CUTLINE

[booleano]

Predefinito: True

Applies the vector layer extent to the output raster if checked.

Mantenere la risoluzione del raster in ingresso

KEEP_RESOLUTION

[booleano]

Predefinito: False

La risoluzione del raster in uscita non sarà cambiata

Impostare la risoluzione del raster in uscita

SET_RESOLUTION

[booleano]

Predefinito: False

Shall the output resolution (cell size) be specified

X Resolution to output bands

Opzionale

X_RESOLUTION

[numero]

Predefinito: None

The width of the cells in the output raster

Y Resolution to output band

Opzionale

Y_RESOLUTION

[numero]

Predefinito: None

The height of the cells in the output raster

Use multithreaded warping implementation

MULTITHREADING

[booleano]

Predefinito: False

Two threads will be used to process chunks of image and perform input/output operation simultaneously. Note that computation is not multithreaded itself.

Opzioni addizionali di creazione

Opzionale

OPZIONI

[stringa]

Predefinito: “”

For adding one or more creation options that control the raster to be created (colors, block size, file compression…). For convenience, you can rely on predefined profiles (see GDAL driver options section).

Output data type

DATA_TYPE

[numero]

Predefinito: 0

Definisce il formato del file raster in uscita.

Opzioni:

  • 0 — Use Input Layer Data Type

  • 1 — Byte

  • 2 — Int16

  • 3 — UInt16

  • 4 — UInt32

  • 5 — Int32

  • 6 — Float32

  • 7 — Float64

  • 8 — CInt16

  • 9 — CInt32

  • 10 — CFloat32

  • 11 — CFloat64

Additional command-line parameters

Opzionale

EXTRA

[stringa]

Predefinito: None

Add extra GDAL command line options

Clipped (mask)

LIVELLO IN USCITA

[raster] Predefinito: “[Salva in un file temporaneo]”

Specification of the output raster layer. One of:

  • Salva come File Temporaneo

  • Salva come File…

The file encoding can also be changed here

24.2.3.2.2. In uscita

Etichetta

Nome

Tipo

Descrizione

Clipped (mask)

LIVELLO IN USCITA

[raster]

Output raster layer clipped by the vector layer

24.2.3.2.3. Codice Python

ID Algoritmo: gdal:cliprasterbymasklayer

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.

24.2.3.3. Contour

Extracts contour lines from any GDAL-supported elevation raster.

This algorithm is derived from the GDAL contour utility.

Default menu: Raster ► Extraction

24.2.3.3.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer in ingresso

INPUT

[raster]

Input raster

Band number

BAND

[banda raster]

Predefinito: 1

Raster band to create the contours from

Interval between contour lines

INTERVAL

[numero]

Predefinito: 10.0

Defines the interval between the contour lines in the given units of the elevation raster (minimum value 0)

Attribute name (if not set, no elevation attribute is attached)

Opzionale

FIELD_NAME

[stringa]

Predefinito: “ELEV”

Provides a name for the attribute in which to put the elevation.

Offset from zero relative to which to interpret intervals

Opzionale

OFFSET

[numero]

Predefinito: 0.0

Produrre un vettore 3D

CREATE_3D

[booleano]

Predefinito: False

Forces production of 3D vectors instead of 2D. Includes elevation at every vertex.

Considera tutti i valori raster come validi

IGNORE_NODATA

[booleano]

Predefinito: False

Ignora tutti i valori nodata nell” insieme dei dati.

**Valore del pixel in ingresso da considerare come «nodata» **

Opzionale

NODATA

[numero]

Predefinito: None

Defines a value that should be inserted for the nodata values in the output raster

Additional command-line parameters

Opzionale

EXTRA

[stringa]

Predefinito: None

Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation.

Contours

LIVELLO IN USCITA

[vettore: linea]

Predefinito: “[Salva in un file temporaneo]”

Specification of the output vector layer. One of:

  • Salva come File Temporaneo

  • Salva come File…

La codifica del file può anche essere cambiata qui.

24.2.3.3.2. In uscita

Etichetta

Nome

Tipo

Descrizione

Contours

LIVELLO IN USCITA

[vettore: linea]

Output vector layer with contour lines

24.2.3.3.3. Codice Python

ID Algoritmo: gdal:contour

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.

24.2.3.4. Contour Polygons

Extracts contour polygons from any GDAL-supported elevation raster.

This algorithm is derived from the GDAL contour utility.

24.2.3.4.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer in ingresso

INPUT

[raster]

Input raster

Band number

BAND

[banda raster]

Predefinito: 1

Raster band to create the contours from

Interval between contour lines

INTERVAL

[numero]

Predefinito: 10.0

Defines the interval between the contour lines in the given units of the elevation raster (minimum value 0)

Offset from zero relative to which to interpret intervals

Opzionale

OFFSET

[numero]

Predefinito: 0.0

Attribute name for minimum elevation of contour polygon

Opzionale

FIELD_NAME_MIN

[stringa]

Predefinito: “ELEV_MIN”

Provides a name for the attribute in which to put the minimum elevation of contour polygon. If not provided no minimum elevation attribute is attached.

Attribute name for maximum elevation of contour polygon

Opzionale

FIELD_NAME_MAX

[stringa]

Predefinito: “ELEV_MAX”

Provides a name for the attribute in which to put the maximum elevation of contour polygon. If not provided no maximum elevation attribute is attached.

Produrre un vettore 3D

CREATE_3D

[booleano]

Predefinito: False

Forces production of 3D vectors instead of 2D. Includes elevation at every vertex.

Considera tutti i valori raster come validi

IGNORE_NODATA

[booleano]

Predefinito: False

Ignora tutti i valori nodata nell” insieme dei dati.

**Valore del pixel in ingresso da considerare come «nodata» **

Opzionale

NODATA

[numero]

Predefinito: None

Defines a value that should be inserted for the nodata values in the output raster

Additional command-line parameters

Opzionale

EXTRA

[stringa]

Predefinito: None

Add extra GDAL command line options. Refer to the corresponding GDAL utility documentation.

Contours

LIVELLO IN USCITA

[vettore: poligono]

Predefinito: “[Salva in un file temporaneo]”

Specification of the output vector layer. One of:

  • Salva come File Temporaneo

  • Salva come File…

La codifica del file può anche essere cambiata qui.

24.2.3.4.2. In uscita

Etichetta

Nome

Tipo

Descrizione

Contours

LIVELLO IN USCITA

[vettore: poligono]

Output vector layer with contour polygons

24.2.3.4.3. Codice Python

ID Algoritmo: gdal:contour_polygon

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.