Outdated version of the documentation. Find the latest one here.

` `

Vector selection

Extract by attribute

Tanım

Creates new vector layer that only contains certain features from an input layer. The criteria for adding features to the resulting layer is defined based on the values of an attribute from the input layer.

Parametreler

Input Layer [vector: any]
<put parameter description here>
Selection attribute [tablefield: any]
<put parameter description here>
Operator [selection]

<put parameter description here>

Options:

  • 0 — =
  • 1 — !=
  • 2 — >
  • 3 — >=
  • 4 — <
  • 5 — <=
  • 6 — begins with
  • 7 — contains

Default: 0

Value [string]

<put parameter description here>

Default: (not set)

Çıktılar

Extracted (attribute) [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:extractbyattribute', input, field, operator, value, output)

Ayrıca bakınız

Extract by location

Tanım

Creates new vector layer that only contains certain features from an input layer. The criteria for adding features to the resulting layer is defined based on the spatial relationship between each feature and the features in an additional layer.

Parametreler

Layer to select from [vector: any]
<put parameter description here>
Additional layer (intersection layer) [vector: any]
<put parameter description here>
Predicate [array of Unicode strings]

Condition for the selection. Array of one or more of the following predicates:

  • disjoint
  • intersects
  • contains
  • equals
  • touches
  • overlaps
  • within
  • crosses

For console usage the predicates must be defined as an array of Unicode strings, eg. [u’intersects’,u’contains’]

Precision [number]
<put parameter description here>

Çıktılar

Extracted (location)
<put output description here>

Konsol kullanımı

processing.runalg('qgis:extractbylocation', input, intersect, predicates, precision, output)

Ayrıca bakınız

Random extract

Tanım

Takes a vector layer and generates a new one that contains only a subset of the features in the input layer. The subset is defined randomly, using a percentage or count value to define the total number of features in the subset.

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
Method [selection]

<put parameter description here>

Options:

  • 0 — Number of selected features
  • 1 — Percentage of selected features

Default: 0

Number/percentage of selected features [number]

<put parameter description here>

Default: 10

Çıktılar

Extracted (random) [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:randomextract', input, method, number, output)

Ayrıca bakınız

Random extract within subsets

Tanım

Takes a vector layer and generates a new one that contains only a subset of the features in the input layer. The subset is defined randomly, using a percentage or count value to define the total number of features in the subset. The percentage/count value is not applied to the whole layer, but instead to each category. Categories are defined according to a given attribute, which is also specified as an input parameter for the algorithm.

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
ID Field [tablefield: any]
<put parameter description here>
Method [selection]

<put parameter description here>

Options:

  • 0 — Number of selected features
  • 1 — Percentage of selected features

Default: 0

Number/percentage of selected features [number]

<put parameter description here>

Default: 10

Çıktılar

``Extracted (random stratified) [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:randomextractwithinsubsets', input, field, method, number, output)

Ayrıca bakınız

Random selection

Tanım

Takes a vector layer and selects a subset of its features. No new layer is generated by this algorithm. The subset is defined randomly, using a percentage or count value to define the total number of features in the subset.

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
Method [selection]

<put parameter description here>

Options:

  • 0 — Number of selected features
  • 1 — Percentage of selected features

Default: 0

Number/percentage of selected features [number]

<put parameter description here>

Default: 10

Çıktılar

Same vector input layer with selected features

Konsol kullanımı

processing.runalg('qgis:randomselection', input, method, number)

Ayrıca bakınız

Random selection within subsets

Tanım

Takes a vector layer and selects a subset of its features. No new layer is generated by this algorithm. The subset is defined randomly, using a percentage or count value to define the total number of features in the subset. The percentage/count value is not applied to the whole layer, but instead to each category. Categories are defined according to a given attribute, which is also specified as an input parameter for the algorithm.

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>
ID Field [tablefield: any]
<put parameter description here>
Method [selection]

<put parameter description here>

Options:

  • 0 — Number of selected features
  • 1 — Percentage of selected features

Default: 0

Number/percentage of selected features [number]

<put parameter description here>

Default: 10

Çıktılar

Same vector input layer with selected features

Konsol kullanımı

processing.runalg('qgis:randomselectionwithinsubsets', input, field, method, number)

Ayrıca bakınız

Remove null geometries

Tanım

Removes any features which do not have a geometry from a vector layer. All other features will be copied unchanged.

Parametreler

Giriş katmanı [vektör: tüm]
<put parameter description here>

Çıktılar

Selection [vector]
<put output description here>

Konsol kullanımı

processing.runalg('qgis:removenullgeometries', input, output)

Ayrıca bakınız

Select by attribute

Tanım

Creates a selection in a vector layer. The criteria for selected features is defined based on the values of an attribute from the input layer.

Parametreler

Input Layer [vector: any]

İşlenecek katman.

Selection attribute [tablefield: any]
Field on which perform the selection.
Operator [selection]

Comparison operator.

Options:

  • 0 — =
  • 1 — !=
  • 2 — >
  • 3 — >=
  • 4 — <
  • 5 — <=
  • 6 — begins with
  • 7 — contains

Default: 0

Value [string]

Value to compare.

Default: (not set)

Çıktılar

Same vector input layer with selected features

Konsol kullanımı

processing.runalg('qgis:selectbyattribute', input, field, operator, value)

Ayrıca bakınız

Select by attribute sum

Tanım

<put algorithm description here>

Parametreler

Input Layer [vector: any]
<put parameter description here>
Selection attribute [tablefield: number]
<put parameter description here>
Value [number]

Value to compare.

Default: 0

Çıktılar

Output [vector]
<put parameter description here>

Konsol kullanımı

processing.runalg('qgis:selectbyattributesum', input, field, value)

Ayrıca bakınız

İfadeye göre seç

Tanım

Creates a selection in a vector layer. The criteria for selecting features is based on a QGIS expression.

Parametreler

Input Layer [vector: any]
<put parameter description here>
Expression [string]

<put parameter description here>

Default: (not set)

Modify current selection by [selection]

<put parameter description here>

Options:

  • 0 — creating new selection
  • 1 — adding to current selection
  • 2 — removing from current selection
  • 3 — selecting within current selection

Default: 0

Çıktılar

Same vector input layer with selected features

Konsol kullanımı

processing.runalg('qgis:selectbyexpression', layername, expression, method)

Ayrıca bakınız

Select by location

Tanım

Creates a selection in a vector layer. The criteria for selecting features is based on the spatial relationship between each feature and the features in an additional layer.

Parametreler

Layer to select from [vector: any]
<put parameter description here>
Additional layer (intersection layer) [vector: any]
<put parameter description here>
Predicate [array of Unicode strings]

Condition for the selection. Array of one or more of the following predicates:

  • disjoint
  • intersects
  • contains
  • equals
  • touches
  • overlaps
  • within
  • crosses

For console usage the predicates must be defined as an array of Unicode strings, eg. [u’intersects’,u’contains’]

Modify current selection by [selection]

<put parameter description here>

Options:

  • 0 — creating new selection
  • 1 — adding to current selection
  • 2 — removing from current selection

Default: 0

Çıktılar

Same vector input layer with selected features

Konsol kullanımı

processing.runalg('qgis:selectbylocation', input, intersect, predicate, precision, method)

Ayrıca bakınız