Vector selection¶
Extract by attribute¶
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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Layer to extract features from. |
Selection attribute |
|
[tablefield: any] |
Filtering field of the layer |
Operator |
|
[enumeration] Default: 0 |
Many different operators are available:
|
Value Optional |
|
[string] |
Value to be evaluated |
Extracted (attribute) |
|
[same as input] Default: |
Specify the output vector layer for matching features. One of:
The file encoding can also be changed here. |
Extracted (non-matching) |
|
[same as input] Default: |
Specify the output vector layer for non-matching features. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Extracted (attribute) |
|
[same as input] |
Vector layer with matching features from the input layer |
Extracted (non-matching) |
|
[same as input] |
Vector layer with non-matching features from the input layer |
See also¶
Extract by expression¶
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 Výrazy.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
Expression |
|
[expression] |
Expression to filter the vector layer |
Matching features |
|
[same as input] Default: |
Specify the output vector layer for matching features. One of:
The file encoding can also be changed here. |
Non-matching |
|
[same as input] Default: |
Specify the output vector layer for non-matching features. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Matching features |
|
[same as input] |
Vector layer with matching features from the input layer |
Non-matching |
|
[same as input] |
Vector layer with non-matching features from the input layer |
See also¶
Extract by location¶
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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Extract features from |
|
[vector: any] |
Input vector layer |
Where the features (geometric predicate) |
|
[enumeration] [list] Default: [0] |
Spatial condition for the selection. One or more of:
If more than one condition is chosen, at least one of them (OR operation) has to be met for a feature to be extracted. |
By comparing to the features from |
|
[vector: any] |
Intersection vector layer |
Extracted (location) |
|
[same as input] Default: |
Specify the output vector layer for the features that have the chosen spatial relationship(s) with one or more features in the comparison layer. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Extracted (location) |
|
[same as input] |
Vector layer with features from the input layer that have the chosen spatial relationship(s) with one or more features in the comparison layer. |
See also¶
Random extract¶
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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Source vector layer to select the features from |
Method |
|
[enumeration] Default: 0 |
Random selection method. One of:
|
Number/percentage of selected features |
|
[number] Default: 10 |
Number or percentage of features to select |
Extracted (random) |
|
[vector: any] Default: |
Specify the output vector layer for the randomly selected features. One of:
Vector layer containing randomly selected features |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Extracted (random) |
|
[same as input] |
Vector layer containing randomly selected features from the input layer |
See also¶
Random extract within subsets¶
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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Vector layer to select the features from |
ID field |
|
[tablefield: any] |
Category of the source vector layer to select the features from |
Method |
|
[enumeration] Default: 0 |
Random selection method. One of:
|
Number/percentage of selected features |
|
[number] Default: 10 |
Number or percentage of features to select |
Extracted (random stratified) |
|
[same as input] Default: |
Specify the output vector layer for the randomly selected features. One of:
The file encoding can also be changed here. |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Extracted (random stratified) |
|
[same as input] |
Vector layer containing randomly selected features from the input layer |
See also¶
Random selection¶
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
:
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Vector layer for the selection |
Method |
|
[enumeration] Default: 0 |
Random selection method. One of:
|
Number/percentage of selected features |
|
[number] Default: 10 |
Number or percentage of features to select |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[same as input] |
The input layer with features selected |
See also¶
Random selection within subsets¶
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
:
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Vector layer to select features in |
ID field |
|
[tablefield: any] |
Category of the input layer to select the features from |
Method |
|
[enumeration] Default: 0 |
Random selection method. One of:
|
Number/percentage of selected features |
|
[number] Default: 10 |
Number or percentage of features to select |
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[same as input] |
The input layer with features selected |
See also¶
Select by attribute¶
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.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Vector layer to select features in |
Selection attribute |
|
[tablefield: any] |
Filtering field of the layer |
Operator |
|
[enumeration] Default: 0 |
Many different operators are available:
|
Value Optional |
|
[string] |
Value to be evaluated |
Modify current selection by |
|
[enumeration] Default: 0 |
How the selection of the algorithm should be managed. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[same as input] |
The input layer with features selected |
See also¶
Select by expression¶
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 Výrazy.
No new outputs are created.
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
Expression |
|
[expression] |
Expression to filter the input layer |
Modify current selection by |
|
[enumeration] Default: 0 |
How the selection of the algorithm should be managed. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[same as input] |
The input layer with features selected |
See also¶
Select by location¶
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
:
Parameters¶
Label |
Name |
Type |
Description |
---|---|---|---|
Select features from |
|
[vector: any] |
Input vector layer |
Where the features (geometric predicate) |
|
[enumeration] [list] Default: [0] |
Spatial condition for the selection. One or more of:
If more than one condition is chosen, at least one of them (OR operation) has to be met for a feature to be extracted. |
By comparing to the features from |
|
[vector: any] |
Intersection vector layer |
Modify current selection by |
|
[enumeration] Default: 0 |
How the selection of the algorithm should be managed. One of:
|
Outputs¶
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[same as input] |
The input layer with features selected |