25.2.7. Vector geoprocessing
25.2.7.1. Buffer vectors
Create buffers around the features of a vector layer.
Parâmetros
Basic parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Camada de entrada |
|
[vector: any] |
A camada vetorial de entrada |
Nome da coluna geometria |
|
[string] Default: ‘geometry’ |
The name of the input layer geometry column to use |
Buffer distance |
|
[number] Padrão: 10.0 |
Minimum: 0.0 |
Dissolve by attribute Opcional |
|
[tablefield: any] Padrão: Nenhum |
Field to use for dissolving |
Dissolve results |
|
[boolean] Padrão: Falso |
|
Produce one feature for each geometry in any kind of geometry collection in the source file |
|
[boolean] Padrão: Falso |
|
Buffer |
|
[vector: polygon] Default: |
Specify the output buffer layer. One of:
|
Advanced parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Opções de criação adicionais Opcional |
|
[string] Padrão: ‘’ (sem opções adicionais) |
Opções adicionais de criação de GDAL. |
Saídas
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Buffer |
|
[vector: polygon] |
The output buffer layer |
Python code
Algorithm ID: gdal:buffervectors
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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.
25.2.7.2. Clip vector by extent
Clips any OGR-supported vector file to a given extent.
This algorithm is derived from the GDAL ogr2ogr utility.
Parâmetros
Basic parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Camada de entrada |
|
[vector: any] |
A camada vetorial de entrada |
Clip extent |
|
[extent] |
Defines the bounding box that should be used for the output vector file. It has to be defined in target CRS coordinates. Available methods are:
|
Clipped (extent) |
|
[same as input] Default: |
Specify the output (clipped) layer. One of:
|
Advanced parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Opções de criação adicionais Opcional |
|
[string] Padrão: ‘’ (sem opções adicionais) |
Opções adicionais de criação de GDAL. |
Saídas
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Clipped (extent) |
|
[same as input] |
The output (clipped) layer. The default format is “ESRI Shapefile”. |
Python code
Algorithm ID: gdal:clipvectorbyextent
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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.
25.2.7.3. Clip vector by mask layer
Clips any OGR-supported vector layer by a mask polygon layer.
This algorithm is derived from the GDAL ogr2ogr utility.
Parâmetros
Basic parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Camada de entrada |
|
[vector: any] |
A camada vetorial de entrada |
Mask layer |
|
[vector: polygon] |
Layer to be used as clipping extent for the input vector layer. |
Clipped (mask) |
|
[same as input] Default: |
The output (masked) layer. One of:
|
Advanced parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Opções de criação adicionais Opcional |
|
[string] Padrão: ‘’ (sem opções adicionais) |
Opções adicionais de criação de GDAL. |
Saídas
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Clipped (mask) |
|
[same as input] |
The output (masked) layer. The default format is “ESRI Shapefile”. |
Python code
Algorithm ID: gdal:clipvectorbypolygon
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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.
25.2.7.4. Dissolver
Dissolve (combine) geometries that have the same value for a given attribute / field. The output geometries are multipart.
Parâmetros
Basic parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Camada de entrada |
|
[vector: any] |
The input layer to dissolve |
Dissolve field Opcional |
|
[tablefield: any] |
The field of the input layer to use for dissolving |
Nome da coluna geometria |
|
[string] Default: ‘geometry’ |
The name of the input layer geometry column to use for dissolving. |
Dissolvido |
|
[same as input] Default: |
Especifique a camada de saída. Uma de:
|
Advanced parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Produce one feature for each geometry in any kind of geometry collection in the source file |
|
[boolean] Padrão: Falso |
Produce one feature for each geometry in any kind of geometry collection in the source file |
Keep input attributes |
|
[boolean] Padrão: Falso |
Keep all attributes from the input layer |
Count dissolved features |
|
[boolean] Padrão: Falso |
Count the dissolved features and include it in the output layer. |
Compute area and perimeter of dissolved features |
|
[boolean] Padrão: Falso |
|
Compute min/max/sum/mean for attribute |
|
[boolean] Padrão: Falso |
Calculate statistics (min, max, sum and mean) for the numeric attribute specified and include them in the output layer |
Numeric attribute to calculate statistics on Opcional |
|
[tablefield: numeric] |
The numeric attribute to calculate statistics on |
Opções de criação adicionais Opcional |
|
[string] Padrão: ‘’ (sem opções adicionais) |
Opções adicionais de criação de GDAL. |
Saídas
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Dissolvido |
|
[same as input] |
|
Python code
Algorithm ID: gdal:dissolve
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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.
25.2.7.5. Offset curve
Desloca as linhas por uma distância especificada. Distâncias positivas deslocarão as linhas à esquerda e distâncias negativas deslocarão as linhas à direita.
Parâmetros
Basic parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Camada de entrada |
|
[vector: line] |
The input line layer |
Nome da coluna geometria |
|
[string] Default: ‘geometry’ |
The name of the input layer geometry column to use |
Offset distance (left-sided: positive, right-sided: negative) |
|
[number] Padrão: 10.0 |
|
Offset curve |
|
[vector: line] Default: |
Especifique a camada da linha de saída. Um de:
|
Advanced parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Opções de criação adicionais Opcional |
|
[string] Padrão: ‘’ (sem opções adicionais) |
Opções adicionais de criação de GDAL. |
Saídas
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Offset curve |
|
[vector: line] |
The output offset curve layer |
Python code
Algorithm ID: gdal:offsetcurve
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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.
25.2.7.6. One side buffer
Creates a buffer on one side (right or left) of the lines in a line vector layer.
Parâmetros
Basic parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Camada de entrada |
|
[vector: line] |
The input line layer |
Nome da coluna geometria |
|
[string] Default: ‘geometry’ |
The name of the input layer geometry column to use |
Buffer distance |
|
[number] Padrão: 10.0 |
|
Buffer side |
|
[enumeration] Padrão: 0 |
Um de:
|
Dissolve by attribute Opcional |
|
[tablefield: any] Padrão: Nenhum |
Field to use for dissolving |
Dissolve all results |
|
[boolean] Padrão: Falso |
|
Produce one feature for each geometry in any kind of geometry collection in the source file |
|
[boolean] Padrão: Falso |
|
One-sided buffer |
|
[vector: polygon] Default: |
Specify the output buffer layer. One of:
|
Advanced parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Opções de criação adicionais Opcional |
|
[string] Padrão: ‘’ (sem opções adicionais) |
Opções adicionais de criação de GDAL. |
Saídas
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
One-sided buffer |
|
[vector: polygon] |
The output buffer layer |
Python code
Algorithm ID: gdal:onesidebuffer
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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.
25.2.7.7. Points along lines
Generates a point on each line of a line vector layer at a distance from start. The distance is provided as a fraction of the line length.
Parâmetros
Basic parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Camada de entrada |
|
[vector: line] |
The input line layer |
Nome da coluna geometria |
|
[string] Default: ‘geometry’ |
The name of the input layer geometry column to use |
Distance from line start represented as a fraction of line length |
|
[number] Default: 0.5 (middle of the line) |
|
Points along lines |
|
[vector: point] Default: |
Specify the output point layer. One of:
|
Advanced parameters
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Opções de criação adicionais Opcional |
|
[string] Padrão: ‘’ (sem opções adicionais) |
Opções adicionais de criação de GDAL. |
Saídas
Etiqueta |
Nome |
Tipo |
Descrição |
---|---|---|---|
Points along line |
|
[vector: point] |
The output point layer |
Python code
Algorithm ID: gdal:pointsalonglines
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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.