network_advanced_parameters

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Campo de direção

Opcional

DIRECTION_FIELD

[tablefield: string]

Padrão: 0.0

The field used to specify directions for the network edges.

Os valores usados ​​neste campo são especificados com os três parâmetros Valor para direção direta, Valor para direção inversa e Valor para ambas as direções. As direções para frente e para trás correspondem a uma borda de mão única, “ambas as direções” indicam uma borda de mão dupla. Se uma feição não tiver um valor nesse campo ou se nenhum campo estiver definido, a configuração de direção padrão (fornecida com o parâmetro Direção padrão) será usada.

Value for forward direction

Opcional

VALUE_FORWARD

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify edges with a forward direction

Value for backward direction

Opcional

VALUE_BACKWARD

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify edges with a backward direction

Value for both directions

Opcional

VALUE_BOTH

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify bidirectional edges

Direção padrão

Opcional

DIREÇÃO_PADRÃO

[enumeration]

Padrão: 2

If a feature has no value set in the direction field or if no direction field is set, then this direction value is used. One of:

  • 0 — Forward direction

  • 1 — Backward direction

  • 2 — Both directions

Campo de velocidade

Opcional

SPEED_FIELD

[tablefield: string]

Field providing the speed value (in km/h) for the edges of the network when looking for the fastest path.

Se uma feição não tiver um valor nesse campo ou nenhum campo estiver definido, o valor da velocidade padrão (fornecido com o parâmetro Velocidade padrão) será usado.

Velocidade padrão (km/h)

Opcional

VELOCIDADE_PADRÃO

[number]

Padrão: 50.0

Value to use to calculate the travel time if no speed field is provided for an edge

Topology tolerance

Opcional

TOLERANCE

[number]

Padrão: 0.0

Duas linhas com nós mais próximos que a tolerância especificada são consideradas conectadas

end_network_advanced_parameters

network_advanced_parameters_table

Campo de direção

Opcional

DIRECTION_FIELD

[tablefield: string]

Padrão: 0.0

The field used to specify directions for the network edges.

Os valores usados ​​neste campo são especificados com os três parâmetros Valor para direção direta, Valor para direção inversa e Valor para ambas as direções. As direções para frente e para trás correspondem a uma borda de mão única, “ambas as direções” indicam uma borda de mão dupla. Se uma feição não tiver um valor nesse campo ou se nenhum campo estiver definido, a configuração de direção padrão (fornecida com o parâmetro Direção padrão) será usada.

Value for forward direction

Opcional

VALUE_FORWARD

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify edges with a forward direction

Value for backward direction

Opcional

VALUE_BACKWARD

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify edges with a backward direction

Value for both directions

Opcional

VALUE_BOTH

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify bidirectional edges

Direção padrão

Opcional

DIREÇÃO_PADRÃO

[enumeration]

Padrão: 2

If a feature has no value set in the direction field or if no direction field is set, then this direction value is used. One of:

  • 0 — Forward direction

  • 1 — Backward direction

  • 2 — Both directions

Campo de velocidade

Opcional

SPEED_FIELD

[tablefield: string]

Field providing the speed value (in km/h) for the edges of the network when looking for the fastest path.

Se uma feição não tiver um valor nesse campo ou nenhum campo estiver definido, o valor da velocidade padrão (fornecido com o parâmetro Velocidade padrão) será usado.

Velocidade padrão (km/h)

Opcional

VELOCIDADE_PADRÃO

[number]

Padrão: 50.0

Value to use to calculate the travel time if no speed field is provided for an edge

Topology tolerance

Opcional

TOLERANCE

[number]

Padrão: 0.0

Duas linhas com nós mais próximos que a tolerância especificada são consideradas conectadas

end_network_advanced_parameters_table

network_advanced_parameters_service_area

Parâmetros avançados

Etiqueta

Nome

Tipo

Descrição

Campo de direção

Opcional

DIRECTION_FIELD

[tablefield: string]

Padrão: 0.0

The field used to specify directions for the network edges.

Os valores usados ​​neste campo são especificados com os três parâmetros Valor para direção direta, Valor para direção inversa e Valor para ambas as direções. As direções para frente e para trás correspondem a uma borda de mão única, “ambas as direções” indicam uma borda de mão dupla. Se uma feição não tiver um valor nesse campo ou se nenhum campo estiver definido, a configuração de direção padrão (fornecida com o parâmetro Direção padrão) será usada.

Value for forward direction

Opcional

VALUE_FORWARD

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify edges with a forward direction

Value for backward direction

Opcional

VALUE_BACKWARD

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify edges with a backward direction

Value for both directions

Opcional

VALUE_BOTH

[string]

Padrão: ‘’ (string vazia)

Value set in the direction field to identify bidirectional edges

Direção padrão

Opcional

DIREÇÃO_PADRÃO

[enumeration]

Padrão: 2

If a feature has no value set in the direction field or if no direction field is set, then this direction value is used. One of:

  • 0 — Forward direction

  • 1 — Backward direction

  • 2 — Both directions

Campo de velocidade

Opcional

SPEED_FIELD

[tablefield: string]

Field providing the speed value (in km/h) for the edges of the network when looking for the fastest path.

Se uma feição não tiver um valor nesse campo ou nenhum campo estiver definido, o valor da velocidade padrão (fornecido com o parâmetro Velocidade padrão) será usado.

Velocidade padrão (km/h)

Opcional

VELOCIDADE_PADRÃO

[number]

Padrão: 50.0

Value to use to calculate the travel time if no speed field is provided for an edge

Topology tolerance

Opcional

TOLERANCE

[number]

Padrão: 0.0

Duas linhas com nós mais próximos que a tolerância especificada são consideradas conectadas

Include upper/lower bound points

INCLUDE_BOUNDS

[boolean]

Padrão: Falso

Creates a point layer output with two points for each edge at the boundaries of the service area. One point is the start of that edge, the other is the end.

end_network_advanced_parameters_service_area

geometric_predicates

../../../../_images/selectbylocation.png

In this example, the dataset from which we want to select (the source vector layer) consists of the green circles, the orange rectangle is the dataset that it is being compared to (the intersection vector layer).

Available geometric predicates are:

Intersect

Tests whether a geometry intersects another. Returns 1 (true) if the geometries spatially intersect (share any portion of space - overlap or touch) and 0 if they don’t. In the picture above, this will select circles 1, 2 and 3.

Contain

Retorna 1 (verdadeiro) se e somente se nenhum ponto de b estiver no exterior de a e pelo menos um ponto do interior de b estiver no interior de a. Na imagem, nenhum círculo é selecionado, mas o retângulo seria se você o selecionasse ao contrário, pois ele contém um círculo completamente. Este é o oposto de are within.

Disjoint

Returns 1 (true) if the geometries do not share any portion of space (no overlap, not touching). Only circle 4 is selected.

Igual

Retorna 1 (verdadeiro) se e somente se as geometrias forem exatamente iguais. Nenhum círculo será selecionado.

Touch

Testa se uma geometria toca em outra. Retorna 1 (verdadeiro) se as geometrias tiverem pelo menos um ponto em comum, mas seus interiores não se cruzam. Somente o círculo 3 está selecionado.

Overlap

Testa se uma geometria sobrepõe outra. Retorna 1 (verdadeiro) se as geometrias compartilharem espaço, têm a mesma dimensão, mas não estão completamente contidas uma na outra. Somente o círculo 2 está selecionado.

Are within

Tests whether a geometry is within another. Returns 1 (true) if geometry a is completely inside geometry b. Only circle 1 is selected.

Cross

Retorna 1 (verdadeiro) se as geometrias fornecidas tiverem alguns pontos internos em comum, mas não todos, e o cruzamento real tiver uma dimensão menor que a maior geometria fornecida. Por exemplo, uma linha cruzando um polígono cruzará como uma linha (selecionada). O cruzamento de duas linhas cruzará como um ponto (selecionado). Dois polígonos cruzam como um polígono (não selecionado).

end_geometric_predicates

postgisexecutesqlexample

Exemplo

  1. Set all the values of an existing field to a fixed value. The SQL query string will be:

    UPDATE your_table SET field_to_update=20;
    

    In the example above, the values of the field field_to_update of the table your_table will be all set to 20.

  2. Create a new area column and calculate the area of each feature with the ST_AREA PostGIS function.

    -- Create the new column "area" on the table your_table"
    ALTER TABLE your_table ADD COLUMN area double precision;
    -- Update the "area" column and calculate the area of each feature:
    UPDATE your_table SET area=ST_AREA(geom);
    

end_postgisexecutesqlexample

algorithm_code_section

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.

end_algorithm_code_section