Docs in progress for ‘QGIS testing’. Visit https://docs.qgis.org/3.4 for QGIS 3.4 docs and translations.

Creates two vector layers from an input layer: one will contain only matching features while the second will contain all the non-matching features.

The criteria for adding features to the resulting layer is defined based on the values of an attribute from the input layer.

`Input Layer`

[vector: any]- Vector layer to extract features from.
`Selection attribute`

[tablefield: any]- Filtering field of the layer.
`Operator`

[enumeration]Many different operators are available:

- 0 — =
- 1 — ≠
- 2 — >
- 3 — >=
- 4 — <
- 5 — <=
- 6 — begins with
- 7 — contains
- 8 — is null
- 9 — is not null
- 10 — does not contain

Default:

`0`

`Value`

[string]Optional

Value to be evaluated.

`Extracted (attribute)`

[vector: any]- Vector layer with matching features.
`Extracted (non-matching)`

[vector: any]- Vector layer with not matching features.

Creates two vector layers from an input layer: one will contain only matching features while the second will contain all the non-matching features.

The criteria for adding features to the resulting layer is based on a QGIS expression.

For more information about expressions see the Expressions.

`Input Layer`

[vector: any]- Input vector layer.
`Expression`

[expression]- Expression to filter the vector layer.

`Matching features`

[vector: any]- Vector layer with matching features.
`Non-matching`

[vector: any]- Vector layer with not matching features.

Creates a new vector layer that only contains matching 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.

`Extract features from`

[vector: any]- Input vector layer.

`Where the features (geometric predicate)`

[enumeration] [list]The spatial condition for the selection is defined by choosing one or more geometric predicates.

*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*- Returns 1 (true) if and only if no points of b lie in the exterior of a,
and at least one point of the interior of b lies in the interior of a.
In the picture, no circle is selected, but the rectangle would be if you
would select it the other way around, as it contains a circle completely.
This is the opposite of
*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.
*Equal*- Returns 1 (true) if and only if geometries are exactly the same. No circles will be selected.
*Touch*- Tests whether a geometry touches another. Returns 1 (true) if the geometries have at least one point in common, but their interiors do not intersect. Only circle 3 is selected.
*Overlap*- Tests whether a geometry overlaps another. Returns 1 (true) if the geometries share space, are of the same dimension, but are not completely contained by each other. Only circle 2 is selected.
*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*- Returns 1 (true) if the supplied geometries have some, but not all, interior points in common and the actual crossing is of a lower dimension than the highest supplied geometry. For example, a line crossing a polygon will cross as a line (selected). Two lines crossing will cross as a point (selected). Two polygons cross as a polygon (not selected).

Default:

*Intersect*`By comparing to the features from`

[vector: any]- Intersection vector layer.

`Extracted (location)`

[vector: any]- Vector layer of the spatial intersection.

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, based on feature IDs, using a percentage or count value to define the total number of features in the subset.

`Input layer`

[vector: any]- Source vector layer to select the features from.
`Method`

[enumeration]Method of the random selection:

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

Default:

*0*`Number/percentage of selected features`

[number]Number or percentage of features to select.

Default:

*10*

`Extracted (random)`

[vector: any]- Vector layer containing random selected features.

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, based on feature IDs, 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.

`Input layer`

[vector: any]- Source vector layer to select the features from.
`ID field`

[tablefield: any]- Category of the source vector layer to select the features from.
`Method`

[enumeration]Method of the random selection:

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

Default:

*0*`Number/percentage of selected features`

[number]Number or percentage of features to select.

Default:

*10*

`Extracted (random stratified)`

[vector: any]- Vector layer containing random selected features.

Takes a vector layer and selects a subset of its features. No new layer is generated by this algorithm.

The subset is defined randomly, based on feature IDs, using a percentage or count value to define the total number of features in the subset.

`Default menu`

:

`Input layer`

[vector: any]- Source vector layer to select the features from.
`Method`

[enumeration]Method of the random selection:

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

Default:

*0*`Number/percentage of selected features`

[number]Number or percentage of features to select.

Default:

*10*

Takes a vector layer and selects a subset of its features. No new layer is generated by this algorithm.

The subset is defined randomly, based on feature IDs, 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.

No new outputs are created.

`Default menu`

:

`Input layer`

[vector: any]- Source vector layer to select the features from.
`ID field`

[tablefield: any]- Category of the source vector layer.
`Method`

[enumeration]Method of the random selection:

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

Default:

*0*`Number/percentage of selected features`

[number]Number or percentage of features to select.

Default:

*10*

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.

No new outputs are created.

`Input Layer`

[vector: any]- Input vector layer.
`Selection attribute`

[tablefield: any]- Filtering field of the layer.
`Operator`

[enumeration]Many different operators are available:

- 0 — =
- 1 — ≠
- 2 — >
- 3 — >=
- 4 — <
- 5 — <=
- 6 — begins with
- 7 — contains
- 8 — is null
- 9 — is not null
- 10 — does not contain

Default:

`0`

`Value`

[string]Optional

Value to be evaluated.

`Modify current selection by`

[enumeration]How the selection of the algorithm should be managed. You have many options:

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

Default:

*0*

Creates a selection in a vector layer. The criteria for selecting features is based on a QGIS expression. For more information about expressions see the Expressions.

No new outputs are created.

`Input Layer`

[vector: any]- Input vector layer.
`Expression`

[expression]- Expression to filter the vector layer.
`Modify current selection by`

[enumeration]How the selection of the algorithm should be managed. You have many options:

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

Default:

*0*

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.

No new outputs are created.

`Default menu`

:

`Select features from`

[vector: any]- Source vector layer.

`Where the features (geometric predicate)`

[enumeration] [list]The spatial condition for the selection is defined by choosing one or more geometric predicates.

*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*- Returns 1 (true) if and only if no points of b lie in the exterior of a,
and at least one point of the interior of b lies in the interior of a.
In the picture, no circle is selected, but the rectangle would be if you
would select it the other way around, as it contains a circle completely.
This is the opposite of
*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.
*Equal*- Returns 1 (true) if and only if geometries are exactly the same. No circles will be selected.
*Touch*- Tests whether a geometry touches another. Returns 1 (true) if the geometries have at least one point in common, but their interiors do not intersect. Only circle 3 is selected.
*Overlap*- Tests whether a geometry overlaps another. Returns 1 (true) if the geometries share space, are of the same dimension, but are not completely contained by each other. Only circle 2 is selected.
*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*- Returns 1 (true) if the supplied geometries have some, but not all, interior points in common and the actual crossing is of a lower dimension than the highest supplied geometry. For example, a line crossing a polygon will cross as a line (selected). Two lines crossing will cross as a point (selected). Two polygons cross as a polygon (not selected).

Default:

*Intersect*`By comparing to the features from`

[vector: any]- Intersection vector layer
`Modify current selection by`

[enumeration]How the selection of the algorithm should be managed. You have many options:

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

Default:

*0*