24.1.12. Analisi sui vettori

24.1.12.1. Statistiche di base sui campi

Genera statistiche di base per un campo della tabella degli attributi di un layer vettoriale.

Sono supportati i campi numerici, data, ora e stringa.

Le statistiche che vengono restituite dipendono dal tipo di campo.

Statistics are generated as an HTML file and are available in the Processing ► Results viewer.

Default menu: Vector ► Analysis Tools

24.1.12.1.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Vettore in ingresso

INPUT_LAYER

[vector: any]

Layer vettoriale su cui calcolare le statistiche

Campo su cui calcolare le statistiche

FIELD_NAME

[tablefield: any]

Qualsiasi campo della tabella compatibile per poter calcolare le statistiche

Statistiche

OUTPUT_HTML_FILE

[html]

file HTML per le statistiche che sono state calcolate

24.1.12.1.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Statistiche

OUTPUT_HTML_FILE

[html]

file HTML con le statistiche ottenute

Conteggio

COUNT

[number]

Numero di valori univoci

UNIQUE

[number]

Numero di valori mancanti (nulli)

EMPTY

[number]

Numero di valori non vuoti

FILLED

[number]

Valore minimo

MIN

[same as input]

Valore massino

MAX

[same as input]

Lunghezza minima

MIN_LENGTH

[number]

Lunghezza massima

MAX_LENGTH

[number]

Mean length

MEAN_LENGTH

[number]

Coefficiente di Variazione

CV

[number]

Somma

SUM

[number]

Valore medio

MEAN

[number]

Deviazione Standard

STD_DEV

[number]

Intervallo

RANGE

[number]

Mediana

MEDIAN

[number]

Minoritario (valore meno frequente)

MINORITY

[same as input]

maggioranza (valore più frequente)

MAJORITY

[same as input]

Primo quartile

FIRSTQUARTILE

[number]

Terzo quartile

THIRDQUARTILE

[number]

Interquartile Range (IQR)

IQR

[number]

24.1.12.1.3. Codice Python

ID Algoritmo: qgis:basicstatisticsforfields

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.1.12.2. Climb along line

Calculates the total climb and descent along line geometries. The input layer must have Z values present. If Z values are not available, the Drape (set Z value from raster) algorithm may be used to add Z values from a DEM layer.

Il layer in uscita è una copia del layer in ingresso con campi aggiuntivi che contengono la salita totale (climb), la discesa totale (descent), la quota minima (minelev) e la quota massima (maxelev) per ogni geometria lineare. Se il layer in ingresso contiene campi con gli stessi nomi di questi campi aggiunti, essi saranno rinominati (i nomi dei campi saranno alterati in «name_2», «name_3», ecc, trovando il primo nome non duplicato).

24.1.12.2.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Vettore lineare

IN INGRESSO

[vector: line]

Line layer to calculate the climb for. Must have Z values

Climb layer

IN USCITA

[vector: line]

Il layer in uscita (linea)

24.1.12.2.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Climb layer

IN USCITA

[vector: line]

Line layer containing new attributes with the results from climb calculations.

Totale salita

TOTALCLIMB

[number]

The sum of the climb for all the line geometries in the input layer

Total descent

TOTALDESCENT

[number]

La somma dei tratti in discesa per tutte le geometrie lineari nel layer in ingresso

Elevazione minima

MINELEVATION

[number]

La quota minima per le geometrie nel layer

Elevazione massima

MAXELEVATION

[number]

The maximum elevation for the geometries in the layer

24.1.12.2.3. Codice Python

ID Algoritmo: qgis:climbalongline

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.1.12.3. Conta i punti nel poligono

Takes a point and a polygon layer and counts the number of points from the point layer in each of the polygons of the polygon layer.

Viene generato un nuovo layer di poligoni, con lo stesso identico contenuto del layer di poligoni in ingresso, ma contenente un campo addizionale con il conteggio dei punti corrispondenti ad ogni poligono.

../../../../_images/count_points_polygon.png

Fig. 24.20 Le etichette nei poligoni mostrano il conteggio dei punti

An optional weight field can be used to assign weights to each point. Alternatively, a unique class field can be specified. If both options are used, the weight field will take precedence and the unique class field will be ignored.

Default menu: Vector ► Analysis Tools

24.1.12.3.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Poligoni

POLYGONS

[vector: polygon]

Polygon layer whose features are associated with the count of points they contain

Punti

POINTS

[vettore: punto]

Point layer with features to count

Campo Sommatoria

Opzionale

WEIGHT

[tablefield: any]

A field from the point layer. The count generated will be the sum of the weight field of the points contained by the polygon. If the weight field is not numeric, the count will be 0.

Class field

Opzionale

CLASSFIELD

[tablefield: any]

Points are classified based on the selected attribute and if several points with the same attribute value are within the polygon, only one of them is counted. The final count of the points in a polygon is, therefore, the count of different classes that are found in it.

Nome campo per il conteggio

FIELD

[stringa]

Predefinito: “NUMPOINTS”

The name of the field to store the count of points

Conteggio

IN USCITA

[vector: polygon]

Specification of the output layer

24.1.12.3.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Conteggio

IN USCITA

[vector: polygon]

Resulting layer with the attribute table containing the new column with the points count

24.1.12.4. DBSCAN clustering

Clusters point features based on a 2D implementation of Density-based spatial clustering of applications with noise (DBSCAN) algorithm.

The algorithm requires two parameters, a minimum cluster size, and the maximum distance allowed between clustered points.

Vedi anche

K-means clustering

24.1.12.4.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer di input

IN INGRESSO

[vettore: punto]

Layer da analizzare

Minimum cluster size

MIN_SIZE

[number]

Predefinito: 5

Minimum number of features to generate a cluster

Maximum distance between clustered points

EPS

[number]

Predefinito: 1.0

Distanza oltre la quale due elementi non possono appartenere allo stesso cluster (eps)

Nome campo per il cluster

FIELD_NAME

[stringa]

Predefinito: “CLUSTER_ID”

Name of the field where the associated cluster number shall be stored

Treat border points as noise (DBSCAN*)

Opzionale

DBSCAN*

[boolean]

Predefinito: False

If checked, points on the border of a cluster are themselves treated as unclustered points, and only points in the interior of a cluster are tagged as clustered.

Clusters

IN USCITA

[vettore: punto]

Vector layer for the result of the clustering

24.1.12.4.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Clusters

IN USCITA

[vettore: punto]

Vector layer containing the original features with a field setting the cluster they belong to

Number of clusters

NUM_CLUSTERS

[number]

The number of clusters discovered

24.1.12.4.3. Codice Python

ID Algoritmo: qgis:dbscanclustering

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.1.12.5. Distance matrix

Calculates for point features distances to their nearest features in the same layer or in another layer.

Default menu: Vector ► Analysis Tools

24.1.12.5.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer di pinti in ingresso

IN INGRESSO

[vettore: punto]

Point layer for which the distance matrix is calculated (from points)

Campo ID univoco in ingresso

INPUT_FIELD

[tablefield: any]

Field to use to uniquely identify features of the input layer. Used in the output attribute table.

Target point layer

TARGET

[vettore: punto]

Point layer containing the nearest point(s) to search (to points)

Target unique ID field

TARGET_FIELD

[tablefield: any]

Field to use to uniquely identify features of the target layer. Used in the output attribute table.

Output matrix type

MATRIX_TYPE

[enumeration]

Predefinito: 0

Different types of calculation are available:

  • 0 — Linear (N * k x 3) distance matrix: for each input point, reports the distance to each of the k nearest target points. The output matrix consists of up to k rows per input point, and each row has three columns: InputID, TargetID and Distance.

  • 1 — Standard (N x T) distance matrix

  • 2 — Summary distance matrix (mean, std. dev., min, max): for each input point, reports statistics on the distances to its target points.

Use only the nearest (k) target points

NEAREST_POINTS

[number]

Predefinito: 0

You can choose to calculate the distance to all the points in the target layer (0) or limit to a number (k) of closest features.

Distance matrix

IN USCITA

[vettore: punto]

24.1.12.5.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Distance matrix

IN USCITA

[vettore: punto]

Point (or MultiPoint for the «Linear (N * k x 3)» case) vector layer containing the distance calculation for each input feature. Its features and attribute table depend on the selected output matrix type.

24.1.12.5.3. Codice Python

ID Algoritmo: qgis:distancematrix

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.1.12.6. Distance to nearest hub (line to hub)

Crea linee che uniscono ogni elemento di un vettore in ingresso all’elemento più vicino in un layer di destinazione. Le distanze sono calcolate in base al center di ogni elemento.

../../../../_images/distance_hub.png

Fig. 24.21 Display the nearest hub for the red input features

24.1.12.6.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Source points layer

IN INGRESSO

[vector: any]

Vector layer for which the nearest feature is searched

Layer degli snodi di destinazione

HUBS

[vector: any]

Vettore che contiene gli elementi da cercare

Hub layer name attribute

FIELD

[tablefield: any]

Field to use to uniquely identify features of the destination layer. Used in the output attribute table

Measurement unit

UNIT

[enumeration]

Predefinito: 0

Units in which to report the distance to the closest feature:

  • 0 — Metri

  • 1 — Piedi

  • 2 — Miglia

  • 3 — Chilometri

  • 4 — Unità layer

Hub distance

IN USCITA

[vector: line]

Line vector layer for the distance matrix output

24.1.12.6.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Hub distance

IN USCITA

[vector: line]

Line vector layer with the attributes of the input features, the identifier of their closest feature and the calculated distance.

24.1.12.6.3. Codice Python

ID Algoritmo: qgis:distancetonearesthublinetohub

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.1.12.7. Distance to nearest hub (points)

Creates a point layer representing the center of the input features with the addition of two fields containing the identifier of the nearest feature (based on its center point) and the distance between the points.

24.1.12.7.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Source points layer

IN INGRESSO

[vector: any]

Vector layer for which the nearest feature is searched

Layer degli snodi di destinazione

HUBS

[vector: any]

Vettore che contiene gli elementi da cercare

Hub layer name attribute

FIELD

[tablefield: any]

Field to use to uniquely identify features of the destination layer. Used in the output attribute table

Measurement unit

UNIT

[enumeration]

Predefinito: 0

Units in which to report the distance to the closest feature:

  • 0 — Metri

  • 1 — Piedi

  • 2 — Miglia

  • 3 — Chilometri

  • 4 — Unità layer

Hub distance

IN USCITA

[vettore: punto]

Point vector layer for the distance matrix output.

24.1.12.7.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Hub distance

IN USCITA

[vettore: punto]

Point vector layer with the attributes of the input features, the identifier of their closest feature and the calculated distance.

24.1.12.7.3. Codice Python

ID Algoritmo: qgis:distancetonearesthubpoints

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.1.12.8. Join by lines (hub lines)

Creates hub and spoke diagrams by connecting lines from points on the Spoke layer to matching points in the Hub layer.

Determination of which hub goes with each point is based on a match between the Hub ID field on the hub points and the Spoke ID field on the spoke points.

If input layers are not point layers, a point on the surface of the geometries will be taken as the connecting location.

Optionally, geodesic lines can be created, which represent the shortest path on the surface of an ellipsoid. When geodesic mode is used, it is possible to split the created lines at the antimeridian (±180 degrees longitude), which can improve rendering of the lines. Additionally, the distance between vertices can be specified. A smaller distance results in a denser, more accurate line.

../../../../_images/join_lines.png

Fig. 24.22 Join points based on a common field / attribute

24.1.12.8.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Hub layer

HUBS

[vector: any]

Input layer

Hub ID field

HUB_FIELD

[tablefield: any]

Field of the hub layer with ID to join

Hub layer fields to copy (leave empty to copy all fields)

Opzionale

HUB_FIELDS

[tablefield: any] [list]

The field(s) of the hub layer to be copied. If no field(s) are chosen all fields are taken.

Spoke layer

SPOKES

[vector: any]

Additional spoke point layer

Spoke ID field

SPOKE_FIELD

[tablefield: any]

Field of the spoke layer with ID to join

Spoke layer fields to copy (leave empty to copy all fields)

Opzionale

SPOKE_FIELDS

[tablefield: any] [list]

Field(s) of the spoke layer to be copied. If no fields are chosen all fields are taken.

Creare linee geodetiche

GEODESIC

[boolean]

Predefinito: False

Creare linee geodetiche (il percorso più breve sulla superficie di un ellissoide)

Distance between vertices (geodesic lines only)

GEODESIC_DISTANCE

[number]

Predefinito: 1000.0 (chilometri)

Distanza tra vertici consecutivi (in chilometri). Una distanza minore ha come risultato una linea più densa e accurata

Split lines at antimeridian (±180 degrees longitude)

ANTIMERIDIAN_SPLIT

[boolean]

Predefinito: False

Split lines at ±180 degrees longitude (to improve rendering of the lines)

Hub lines

IN USCITA

[vector: line]

The resulting line layer

24.1.12.8.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Hub lines

IN USCITA

[vector: line]

The resulting line layer

24.1.12.8.3. Codice Python

ID Algoritmo: qgis:hublines

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.1.12.9. K-means clustering

Calculates the 2D distance based k-means cluster number for each input feature.

K-means clustering aims to partition the features into k clusters in which each feature belongs to the cluster with the nearest mean. The mean point is represented by the barycenter of the clustered features.

If input geometries are lines or polygons, the clustering is based on the centroid of the feature.

../../../../_images/kmeans.png

Fig. 24.23 A five class point clusters

Vedi anche

DBSCAN clustering

24.1.12.9.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer di input

IN INGRESSO

[vector: any]

Layer da analizzare

Number of clusters

CLUSTERS

[number]

Predefinito: 5

Number of clusters to create with the features

Nome campo per il cluster

FIELD_NAME

[stringa]

Predefinito: “CLUSTER_ID”

Name of the cluster number field

Clusters

IN USCITA

[vector: any]

Vector layer for generated the clusters

24.1.12.9.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Clusters

IN USCITA

[vector: any]

Vector layer containing the original features with a field specifying the cluster they belong to

24.1.12.9.3. Codice Python

ID Algoritmo: qgis:kmeansclustering

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.1.12.10. List unique values

Lists unique values of an attribute table field and counts their number.

Default menu: Vector ► Analysis Tools

24.1.12.10.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer di input

IN INGRESSO

[vector: any]

Layer da analizzare

Target field(s)

FIELDS

[tablefield: any]

Campo da analizzare

Valori univoci

IN USCITA

[table]

Summary table layer with unique values

HTML report

OUTPUT_HTML_FILE

[html]

HTML report of unique values in the Processing ► Results viewer

24.1.12.10.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Valori univoci

IN USCITA

[table]

Summary table layer with unique values

HTML report

OUTPUT_HTML_FILE

[html]

HTML report of unique values. Can be opened from the Processing ► Results viewer

Total unique values

TOTAL_VALUES

[number]

The number of uniqe values in the input field

UNIQUE_VALUES

Unique values

[stringa]

A string with the comma separated list of unique values found in the input field

24.1.12.10.3. Codice Python

ID Algoritmo: qgis:listuniquevalues

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.1.12.11. Mean coordinate(s)

Calcolare un layer di punti con il centro di massa delle geometrie in un layer in ingresso.

An attribute can be specified as containing weights to be applied to each feature when computing the center of mass.

If an attribute is selected in the parameter, features will be grouped according to values in this field. Instead of a single point with the center of mass of the whole layer, the output layer will contain a center of mass for the features in each category.

Default menu: Vector ► Analysis Tools

24.1.12.11.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer di input

IN INGRESSO

[vector: any]

Layer vettoriale in input

Campo Sommatoria

Opzionale

WEIGHT

[tablefield: numeric]

Field to use if you want to perform a weighted mean

Unique ID field

UID

[tablefield: numeric]

Unique field on which the calculation of the mean will be made

Mean coordinates

IN USCITA

[vettore: punto]

The (point vector) layer for the result

24.1.12.11.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Mean coordinates

IN USCITA

[vettore: punto]

Resulting point(s) layer

24.1.12.11.3. Codice Python

ID Algoritmo: qgis:meancoordinates

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.1.12.12. Nearest neighbour analysis

Performs nearest neighbor analysis for a point layer. The output tells you how your data are distributed (clustered, randomly or distributed).

Output is generated as an HTML file with the computed statistical values:

  • Observed mean distance

  • Expected mean distance

  • Nearest neighbour index

  • Number of points

  • Z-Score: Comparing the Z-Score with the normal distribution tells you how your data are distributed. A low Z-Score means that the data are unlikely to be the result of a spatially random process, while a high Z-Score means that your data are likely to be a result of a spatially random process.

    ../../../../_images/normal_distribution.png

Default menu: Vector ► Analysis Tools

24.1.12.12.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer di input

IN INGRESSO

[vettore: punto]

Point vector layer to calculate the statistics on

Nearest neighbour

OUTPUT_HTML_FILE

[html]

HTML file for the computed statistics

24.1.12.12.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Nearest neighbour

OUTPUT_HTML_FILE

[html]

HTML file with the computed statistics

Observed mean distance

OBSERVED_MD

[number]

Observed mean distance

Expected mean distance

EXPECTED_MD

[number]

Expected mean distance

Nearest neighbour index

NN_INDEX

[number]

Nearest neighbour index

Numero di punti

POINT_COUNT

[number]

Number of points

Z-Score

Z_SCORE

[number]

Z-Score

24.1.12.12.3. Codice Python

ID Algoritmo: qgis:nearestneighbouranalysis

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.1.12.13. Overlap analysis

Calculates the area and percentage cover by which features from an input layer are overlapped by features from a selection of overlay layers.

New attributes are added to the output layer reporting the total area of overlap and percentage of the input feature overlapped by each of the selected overlay layers.

24.1.12.13.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer di input

IN INGRESSO

[vector: any]

Il layer di input.

Layer sovrapposti

LAYERS

[vector: any] [list]

Layer in sovrapposizione

Layer in uscita

IN USCITA

[same as input]

Predefinito: [Crea livello temporaneo]

Specify the output vector layer. One of:

  • Crea Layer Temporaneo (TEMPORARY_OUTPUT)

  • Salva come File…

  • Salva come Geopackage…

  • Salva su Tabella PostGIS…

La codifica del file può anche essere cambiata qui.

24.1.12.13.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Layer in uscita

IN USCITA

[same as input]

The output layer with additional fields reporting the overlap (in map units and percentage) of the input feature overlapped by each of the selected layers.

24.1.12.13.3. Codice Python

ID Algoritmo: qgis:calculatevectoroverlaps

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.1.12.14. Statistiche per categorie

Calculates statistics of a field depending on a parent class. The parent class is a combination of values from other fields.

24.1.12.14.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Layer vettoriale in ingresso

IN INGRESSO

[vector: any]

Layer vettoriale in ingresso con classi e valori univoci

Field to calculate statistics on (if empty, only count is calculated)

Opzionale

VALUES_FIELD_NAME

[tablefield: any]

If empty only the count will be calculated

Field(s) with categories

CATEGORIES_FIELD_NAME

[vector: any] [list]

The fields that (combined) define the categories

Statistics by category

IN USCITA

[table]

Table for the generated statistics

24.1.12.14.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Statistics by category

IN USCITA

[table]

Table containing the statistics

Depending on the type of the field being analyzed, the following statistics are returned for each grouped value:

Statistiche

Stringa

Numerico

Data

Conteggio (COUNT)

checkbox

checkbox

checkbox

Valori univoci (UNIQUE)

checkbox

checkbox

Valori vuoti (nulli) (EMPTY)

checkbox

checkbox

Valori non vuoti (FILLED)

checkbox

checkbox

Valore minimo (MIN)

checkbox

checkbox

checkbox

Valore massimo (MAX)

checkbox

checkbox

checkbox

Intervallo (RANGE)

checkbox

Somma (SUM)

checkbox

Valore medio (MEAN)

checkbox

Valore mediano (MEDIAN)

checkbox

Deviazione Standard (STD_DEV)

checkbox

Coefficiente di variazione (CV)

checkbox

Minority (rarest occurring value - MINORITY)

checkbox

Majority (most frequently occurring value - MAJORITY)

checkbox

First Quartile (FIRSTQUARTILE)

checkbox

Terzo Quartile (THIRDQUARTILE)

checkbox

Intervallo inter-quartile (IQR)

checkbox

Lunghezza Minima (MIN_LENGTH)

checkbox

Lunghezza medie (MEAN_LENGTH)

checkbox

Lunghezza massima (MAX_LENGTH)

checkbox

24.1.12.14.3. Codice Python

ID Algoritmo: qgis:statisticsbycategories

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.1.12.15. Somma delle lunghezze delle linee

Takes a polygon layer and a line layer and measures the total length of lines and the total number of them that cross each polygon.

The resulting layer has the same features as the input polygon layer, but with two additional attributes containing the length and count of the lines across each polygon.

Default menu: Vector ► Analysis Tools

24.1.12.15.1. Parametri

Etichetta

Nome

Tipo

Descrizione

Linee

LINES

[vector: line]

Vettore lineare in ingresso

Poligoni

POLYGONS

[vector: polygon]

Polygon vector layer

Nome campo lunghezza delle linee

LEN_FIELD

[stringa]

Predefinito: “LENGTH”

Name of the field for the lines length

Lines count field name

COUNT_FIELD

[stringa]

Predefinito: “COUNT”

Nome del campo per il conteggio delle linee

Lunghezza linea

IN USCITA

[vector: polygon]

Il layer vettoriale poligonale in uscita

24.1.12.15.2. In uscita:

Etichetta

Nome

Tipo

Descrizione

Lunghezza linea

IN USCITA

[vector: polygon]

Layer poligonale in uscita con i campi della lunghezza delle linee e del numero di linee

24.1.12.15.3. Codice Python

ID Algoritmo: qgis:sumlinelengths

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.