Importante

Translation is a community effort you can join. This page is currently translated at 76.31%.

28.1.23. Vector overlay

28.1.23.1. Clip

Clips a vector layer using the features of an additional polygon layer.

Only the parts of the features in the input layer that fall within the polygons of the overlay layer will be added to the resulting layer.

Aviso

Apenas modificação de geometria

This operation modifies only the features geometry. The attribute values of the features are not modified, although properties such as area or length of the features will be modified by the overlay operation. If such properties are stored as attributes, those attributes will have to be manually updated.

This algorithm uses spatial indexes on the providers, prepared geometries and apply a clipping operation if the geometry isn’t wholly contained by the mask geometry.

../../../../_images/clip3.png

Fig. 28.119 Clipping operation between a two-feature input layer ‘a’ and a single feature overlay layer ‘b’ (left) - resulting in a new layer with the modified ‘a’ features (right)

checkbox Allows features in-place modification 1 de ponto, linha e características poligonais.

Default menu: Vector ► Geoprocessing Tools

Ver também

Interseção, Diferença

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Layer containing the features to be clipped

Overlay layer

OVERLAY

[vetor: polígono]

Layer containing the clipping features

Clipped

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain the features from the input layer that are inside the overlay (clipping) layer. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Saídas

Etiqueta

Nome

Tipo

Descrição

Clipped

OUTPUT

[o mesmo que entrada]

Layer containing features from the input layer split by the overlay layer.

Código Python

Algorithm ID: qgis:clip

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.2. Diferença

Extracts features from the input layer that don’t fall within the boundaries of the overlay layer.

Input layer features that partially overlap the overlay layer feature(s) are split along the boundary of those feature(s) and only the portions outside the overlay layer features are retained.

Aviso

Apenas modificação de geometria

This operation modifies only the features geometry. The attribute values of the features are not modified, although properties such as area or length of the features will be modified by the overlay operation. If such properties are stored as attributes, those attributes will have to be manually updated.

../../../../_images/difference.png

Fig. 28.120 Difference operation between a two-features input layer ‘a’ and a single feature overlay layer ‘b’ (left) - resulting in a new layer with the modified ‘a’ features (right)

checkbox Allows features in-place modification 1 de ponto, linha e características poligonais.

Default menu: Vector ► Geoprocessing Tools

Parâmetros

Parâmetros básicos

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Layer to extract (parts of) features from.

Overlay layer

OVERLAY

[vetor: qualquer]

Layer containing the geometries that will be subtracted from the input layer geometries. It is expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer geometries.

Diferença

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Especifique a camada para conter as (partes das) feições da camada de entrada que não estão dentro da camada de sobreposição. Um de:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Grid size

Opcional

GRID_SIZE

[número]

Padrão: Não definido

If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher.

Saídas

Etiqueta

Nome

Tipo

Descrição

Diferença

OUTPUT

[o mesmo que entrada]

Camada contendo (partes das) feições da camada de entrada que não se sobrepõe à camada de sobreposição.

Código Python

Algorithm ID: qgis:difference

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.3. Difference (multiple)

Extracts features from the input layer that fall completely outside or only partially overlap the features from any of the overlay layer(s).

For each overlay layer the difference is calculated between the result of all previous difference operations and this overlay layer. Input layer features that partially overlap feature(s) in the overlay layer are split along those features’ boundary and only the portions outside the overlay layer features are retained.

Aviso

Apenas modificação de geometria

This operation modifies only the features geometry. The attribute values of the features are not modified, although properties such as area or length of the features will be modified by the overlay operation. If such properties are stored as attributes, those attributes will have to be manually updated.

../../../../_images/difference_multi.png

Fig. 28.121 Difference operation between a two-feature input layer ‘a’ and single feature overlay layers ‘b’ and ‘c’ (left) - resulting in a new layer with the modified ‘a’ features (right)

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Layer to extract (parts of) features from.

Overlay layers

OVERLAYS

[vetor: qualquer] [lista]

List of layers containing the geometries that will be subtracted from the input layer geometries. They are expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer geometries.

Diferença

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain the (parts of) features from the input layer that do not overlap features of the overlay layers. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Saídas

Etiqueta

Nome

Tipo

Descrição

Diferença

OUTPUT

[o mesmo que entrada]

Layer containing (parts of) features from the input layer not overlapping features from the overlay layers.

Código Python

Algorithm ID: qgis:multidifference

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.4. Extract/clip by extent

Cria uma nova camada vetorial que contém apenas feições que se enquadram em uma extensão especificada.

Quaisquer feições que cruzem a extensão serão incluídas.

../../../../_images/extractbyextent.png

Fig. 28.122 Operação de extração entre uma camada de entrada de três características “a” e uma extensão tracejada (esquerda) - características resultantes com extensão tracejada para referência (direita)

Ver também

Clip

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Layer to extract (parts of) features from.

Extensão (xmin, xmax, ymin, ymax)

EXTENT

[extensão]

Extent for clipping.

Os métodos disponíveis são:

  • Calcular da camada…: usa a extensão de uma camada carregada no projeto atual

  • Calculado a partir do layout do mapa…: usa extensão do tipo Item do layout do mapa no projeto ativo.

  • Calcular a partir do bookmark…: usa a extensão de uma já salvada bookmark

  • Usar extensão de tela de mapa

  • Desenhe na tela: Clique e arreste um retângulo delimitando a área que deve ser levada em consideração.

  • Insira as coordenadas como xmin, xmax, ymin, ymax

Clip features to extent

CLIP

[boleano]

Padrão: Falso

If checked, output geometries will be automatically converted to multi geometries to ensure uniform output types. Moreover the geometries will be clipped to the extent chosen instead of taking the whole geometry as output.

../../../../_images/extractbyextent_clip.png

Fig. 28.123 Operação de extração entre uma camada de entrada de três características “a” e uma extensão tracejada (esquerda) - características resultantes com extensão tracejada para referência (direita)

Extraído

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain the features from the input layer that are inside the clip extent. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Saídas

Etiqueta

Nome

Tipo

Descrição

Extraído

OUTPUT

[o mesmo que entrada]

Layer containing the clipped features.

Código Python

Algorithm ID: qgis:extractbyextent

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.5. Interseção

Extrai as partes das feições da camada de entrada que se sobrepõem aàs feições na camada de sobreposição.

As feições na camada de interseção são atribuídas aos atributos das feições sobrepostas das camadas de entrada e de sobreposição.

Aviso

Apenas modificação de geometria

This operation modifies only the features geometry. The attribute values of the features are not modified, although properties such as area or length of the features will be modified by the overlay operation. If such properties are stored as attributes, those attributes will have to be manually updated.

../../../../_images/intersection.png

Fig. 28.124 Intersection operation between a two-feature input layer ‘a’ and a single feature overlay layer ‘b’ (left) - overlapping areas become a new two-feature layer with both layers’ attributes (right)

Default menu: Vector ► Geoprocessing Tools

Parâmetros

Parâmetros básicos

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Layer to extract (parts of) features from.

Overlay layer

OVERLAY

[vetor: qualquer]

Layer containing the features to check for overlap. Its features’ geometry is expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer’s.

Input fields to keep (leave empty to keep all fields)

Opcional

INPUT_FIELDS

[campo da tabela: qualquer][list]

Padrão: Nenhum

Field(s) of the input layer to keep in the output. If no fields are chosen all fields are taken.

Overlay fields to keep (leave empty to keep all fields)

Opcional

OVERLAY_FIELDS

[campo da tabela: qualquer][list]

Padrão: Nenhum

Field(s) of the overlay layer to keep in the output. If no fields are chosen all fields are taken. Duplicate field names will be appended a count suffix to avoid collision.

Intersecção

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain (the parts of) the features from the input layer that overlap one or more features from the overlay layer. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Overlay fields prefix

Opcional

OVERLAY_FIELDS_PREFIX

[string]

Add a prefix to identify fields of the overlay layer. Duplicate field names will be appended a count suffix to avoid collision.

Grid size

Opcional

GRID_SIZE

[número]

Padrão: Não definido

If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher.

Saídas

Etiqueta

Nome

Tipo

Descrição

Intersecção

OUTPUT

[o mesmo que entrada]

Layer containing (parts of) features from the input layer that overlap the overlay layer.

Código Python

Algorithm ID: qgis:intersection

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.6. Intersection (multiple)

Extracts the overlapping portions of features in the input and all overlay layers.

Features in the output layer are assigned the attributes of the overlapping features from both the input and overlay layers.

Aviso

Apenas modificação de geometria

This operation modifies only the features geometry. The attribute values of the features are not modified, although properties such as area or length of the features will be modified by the overlay operation. If such properties are stored as attributes, those attributes will have to be manually updated.

../../../../_images/intersection_multi.png

Fig. 28.125 Intersection operation between a two-feature input layer ‘a’ and single feature overlay layers ‘b’ and ‘c’ (left) - overlapping areas become a new two-feature layer with all layers’ attributes (right)

Ver também

Interseção, Clip, Diferença

Parâmetros

Parâmetros básicos

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Layer to extract (parts of) features from.

Overlay layers

OVERLAYS

[vetor: qualquer] [lista]

Layers containing the features to check for overlap. The features’ geometry is expected to have at least as many dimensions (point: 0D, line: 1D, polygon: 2D, volume: 3D) as the input layer’s.

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Overlay fields prefix

Opcional

OVERLAY_FIELDS_PREFIX

[string]

Add a prefix to identify fields of the overlay layers. Duplicate field names will be appended a count suffix to avoid collision.

Saídas

Etiqueta

Nome

Tipo

Descrição

Intersecção

OUTPUT

[o mesmo que entrada]

Layer containing (parts of) features from the input layer that overlap all the overlay layers.

Código Python

Algorithm ID: qgis:multiintersection

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.7. Interseções de linha

Cria feições de ponto onde as linhas das duas camadas se cruzam.

../../../../_images/line_intersection.png

Fig. 28.126 Pontos de interseção

Default menu: Vector ► Analysis Tools

Parâmetros

Parâmetros básicos

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: linha]

Input line layer.

camada de interseção*

INTERSECT

[vetor: linha]

Layer to use to find line intersections.

Input fields to keep (leave empty to keep all fields)

Opcional

INPUT_FIELDS

[campo da tabela: qualquer][list]

Padrão: Nenhum

Field(s) of the input layer to keep in the output. If no fields are chosen all fields are taken.

Intersect fields to keep (leave empty to keep all fields)

Opcional

INTERSECT_FIELDS

[campo da tabela: qualquer][list]

Padrão: Nenhum

Field(s) of the intersect layer to keep in the output. If no fields are chosen all fields are taken. Duplicate field names will be appended a count suffix to avoid collision.

Intersecção

OUTPUT

[vetor: ponto]

Padrão: [Criar camada temporária]

Especifique a camada para conter os pontos de interseção das linhas das camadas de entrada e de sobreposição. Um de:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Intersect fields prefix

Opcional

INTERSECT_FIELDS_PREFIX

[string]

Add a prefix to identify fields of the intersect layer.

Saídas

Etiqueta

Nome

Tipo

Descrição

Interseções

OUTPUT

[vetor: ponto]

Point vector layer of the lines intersections, with both layers’ attributes.

Código Python

Algorithm ID: qgis:lineintersections

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.8. Split with lines

Splits the lines or polygons in one layer using the lines or polygon rings in another layer to define the breaking points. Intersection between geometries in both layers are considered as split points.

Output will contain multi geometries for split features.

../../../../_images/split_with_lines.png

Fig. 28.127 Linhas divididas

checkbox permite features in-place modification 1.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: linha, polígono]

Camada que contém as linhas ou polígonos a serem divididos.

Split layer

LINES

[vetor: linha, polígono]

Layer whose lines or rings are used to define the breaking points.

Dividir

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain the splitted (in case they are intersected by a line in the split layer) line/polygon features from the input layer. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Saídas

Etiqueta

Nome

Tipo

Descrição

Dividir

OUTPUT

[o mesmo que entrada]

Output vector layer with split lines or polygons from input layer.

Código Python

Algorithm ID: qgis:splitwithlines

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.9. Diferença simétrica

Creates a layer containing features from both the input and overlay layers but with the overlapping areas between the two layers removed.

The attribute table of the symmetrical difference layer contains attributes and fields from both the input and overlay layers.

Aviso

Apenas modificação de geometria

This operation modifies only the features geometry. The attribute values of the features are not modified, although properties such as area or length of the features will be modified by the overlay operation. If such properties are stored as attributes, those attributes will have to be manually updated.

../../../../_images/symmetrical_difference.png

Fig. 28.128 Symmetrical difference operation between a two-features input layer ‘a’ and a single feature overlay layer ‘b’ (left) - resulting three-feature layer with both layers’ attributes (right)

Default menu: Vector ► Geoprocessing Tools

Ver também

Diferença, Clip, Interseção

Parâmetros

Parâmetros básicos

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Primeira camada para extrair (partes de) feições de.

Overlay layer

OVERLAY

[vetor: qualquer]

Second layer to extract (parts of) features from. Ideally the geometry type should be the same as input layer.

Diferença simétrica

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain (the parts of) the features from the input and overlay layers that do not overlap features from the other layer. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Overlay fields prefix

Opcional

OVERLAY_FIELDS_PREFIX

[string]

Add a prefix to identify fields of the overlay layer. Duplicate field names will be appended a count suffix to avoid collision.

Grid size

Opcional

GRID_SIZE

[número]

Padrão: Não definido

If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher.

Saídas

Etiqueta

Nome

Tipo

Descrição

Diferença simétrica

OUTPUT

[o mesmo que entrada]

Layer containing (parts of) features from each layer not overlapping the other layer, with both layers’ attributes.

Código Python

Algorithm ID: qgis:symmetricaldifference

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.10. União

Checks overlaps between features within the input layer and creates separate features for overlapping and non-overlapping parts. The area of overlap will create as many identical overlapping features as there are features that participate in that overlap.

../../../../_images/union.png

Fig. 28.129 Union operation with a single input layer with two overlapping features (left) - resulting in four features (middle) - features moved for clarity (right)

An overlay layer can also be used, in which case features from each layer are split at their overlap with features from the other one, creating a layer containing all the portions from both input and overlay layers. Features on the same layer will not split each other. The attribute table of the union layer is filled with attribute values from the respective original layer for non-overlapping features, and attribute values from both layers for overlapping features.

../../../../_images/union_with_overlay.png

Fig. 28.130 Union operation between a two-feature input layer ‘a’ and a single feature overlay layer ‘b’ (left) - resulting five-feature layer with attributes from both layers (right)

Nota

With an overlay layer, features on the same layer will not split each other. If you want to split overlaps on the same layer as well as other layers, first run the algorithm with multiple layers then run the algorithm again with only the previous output.

Default menu: Vector ► Geoprocessing Tools

Parâmetros

Parâmetros básicos

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Input vector layer to split at any intersections.

Overlay layer

Opcional

OVERLAY

[vetor: qualquer]

Layer that will be combined to the first one. Ideally the geometry type should be the same as input layer.

União

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain the (split and duplicated) features from the input layer and the overlay layer. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Overlay fields prefix

Opcional

OVERLAY_FIELDS_PREFIX

[string]

Add a prefix to identify fields of the overlay layer. Duplicate field names will be appended a count suffix to avoid collision.

Grid size

Opcional

GRID_SIZE

[número]

Padrão: Não definido

If provided, the input geometries are snapped to a grid of the given size, and the result vertices are computed on that same grid. Requires GEOS 3.9.0 or higher.

Saídas

Etiqueta

Nome

Tipo

Descrição

União

OUTPUT

[o mesmo que entrada]

Layer containing all the overlapping and non-overlapping parts from the processed layer(s).

Código Python

Algorithm ID: qgis:union

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.

28.1.23.11. Union (multiple)

Checks overlaps between features within the input layer and creates separate features for overlapping and non-overlapping parts. The area of overlap will create as many identical overlapping features as there are features that participate in that overlap.

../../../../_images/union.png

Fig. 28.131 Union operation with a single input layer with two overlapping features (left) - resulting in four features (middle) - features moved for clarity (right)

Multiple overlay layers can also be used, in which case features from each layer are split at their overlap with features from all other layers, creating a layer containing all the portions from both input and overlay layers. Features on the same layer will not split each other. The attribute table of the Union layer is filled with attribute values from the respective original layer for non-overlapping features, and attribute values from overlay layers for overlapping features.

../../../../_images/union_multi.png

Fig. 28.132 Union operation between a two-feature input layer ‘a’ and single feature overlay layers ‘b’ and ‘c’ (left) - resulting eleven-feature layer with attributes from all layers (right)

Nota

With an overlay layer, features on the same layer will not split each other. If you want to split overlaps on the same layer as well as other layers, first run the algorithm with multiple layers then run the algorithm again with only the previous output.

Parâmetros

Parâmetros básicos

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

INPUT

[vetor: qualquer]

Input vector layer to split at any intersections.

Overlay layers

Opcional

OVERLAYS

[vetor: qualquer] [lista]

Layers that will be combined to the first one. Ideally the geometry type should be the same as input layer.

União

OUTPUT

[o mesmo que entrada]

Padrão: [Criar camada temporária]

Specify the layer to contain the (split and duplicated) features from the input layer and the overlay layers. One of:

  • Criar Camada Temporária (TEMPORARY_OUTPUT)

  • Salvar em Arquivo…

  • Salvar para Geopackage…

  • Salvar na Tabela de Banco de Dados…

A codificação do arquivo também pode ser alterada aqui.

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Overlay fields prefix

Opcional

OVERLAY_FIELDS_PREFIX

[string]

Add a prefix to identify fields of the overlay layers. Duplicate field names will be appended a count suffix to avoid collision.

Saídas

Etiqueta

Nome

Tipo

Descrição

União

OUTPUT

[o mesmo que entrada]

Layer containing all the overlapping and non-overlapping parts from the processed layer(s), with all layers’ attributes.

Código Python

Algorithm ID: qgis:multiunion

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

O id do algoritmo é exibido quando você passa o mouse sobre o algoritmo na Caixa de ferramentas de processamento. O dicionário de parâmetros fornece os nomes e valores dos parâmetros. Veja Usando os algoritmos do processamento a partir do Terminal Python. para detalhes sobre como executar algoritmos de processamento a partir do console Python.