Encapsulates settings relating to a feature source input to a processing algorithm.
More...
#include <qgsprocessingparameters.h>
|
| QgsProcessingFeatureSourceDefinition (const QgsProperty &source, bool selectedFeaturesOnly=false, long long featureLimit=-1, QgsProcessingFeatureSourceDefinition::Flags flags=QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck=QgsFeatureRequest::GeometryAbortOnInvalid) |
| Constructor for QgsProcessingFeatureSourceDefinition, accepting a QgsProperty source. More...
|
|
| QgsProcessingFeatureSourceDefinition (const QString &source=QString(), bool selectedFeaturesOnly=false, long long featureLimit=-1, QgsProcessingFeatureSourceDefinition::Flags flags=QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck=QgsFeatureRequest::GeometryAbortOnInvalid) |
| Constructor for QgsProcessingFeatureSourceDefinition, accepting a static string source. More...
|
|
bool | loadVariant (const QVariantMap &map) |
| Loads this source definition from a QVariantMap, wrapped in a QVariant. More...
|
|
| operator QVariant () const |
| Allows direct construction of QVariants. More...
|
|
bool | operator!= (const QgsProcessingFeatureSourceDefinition &other) const |
|
bool | operator== (const QgsProcessingFeatureSourceDefinition &other) const |
|
QVariant | toVariant () const |
| Saves this source definition to a QVariantMap, wrapped in a QVariant. More...
|
|
Encapsulates settings relating to a feature source input to a processing algorithm.
- Since
- QGIS 3.0
Definition at line 56 of file qgsprocessingparameters.h.
◆ Flag
Flags which control source behavior.
- Since
- QGIS 3.14
Enumerator |
---|
FlagOverrideDefaultGeometryCheck | If set, the default geometry check method (as dictated by QgsProcessingContext) will be overridden for this source.
|
FlagCreateIndividualOutputPerInputFeature | If set, every feature processed from this source will be placed into its own individually created output destination. Support for this flag depends on how an algorithm is executed.
|
Definition at line 64 of file qgsprocessingparameters.h.
◆ QgsProcessingFeatureSourceDefinition() [1/2]
Constructor for QgsProcessingFeatureSourceDefinition, accepting a static string source.
If selectedFeaturesOnly is true
, then only selected features from the source will be used.
The optional featureLimit can be set to a value > 0 to place a hard limit on the maximum number of features which will be read from the source.
The flags argument can be used to specify flags which dictate the source behavior.
If the QgsProcessingFeatureSourceDefinition::Flag::FlagOverrideDefaultGeometryCheck is set in flags, then the value of geometryCheck will override the default geometry check method (as dictated by QgsProcessingContext) for this source.
Definition at line 84 of file qgsprocessingparameters.h.
◆ QgsProcessingFeatureSourceDefinition() [2/2]
Constructor for QgsProcessingFeatureSourceDefinition, accepting a QgsProperty source.
If selectedFeaturesOnly is true
, then only selected features from the source will be used.
The optional featureLimit can be set to a value > 0 to place a hard limit on the maximum number of features which will be read from the source.
The flags argument can be used to specify flags which dictate the source behavior.
If the QgsProcessingFeatureSourceDefinition::Flag::FlagOverrideDefaultGeometryCheck is set in flags, then the value of geometryCheck will override the default geometry check method (as dictated by QgsProcessingContext) for this source.
Definition at line 106 of file qgsprocessingparameters.h.
◆ loadVariant()
bool QgsProcessingFeatureSourceDefinition::loadVariant |
( |
const QVariantMap & |
map | ) |
|
◆ operator QVariant()
QgsProcessingFeatureSourceDefinition::operator QVariant |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator==()
◆ toVariant()
QVariant QgsProcessingFeatureSourceDefinition::toVariant |
( |
| ) |
const |
◆ featureLimit
long long QgsProcessingFeatureSourceDefinition::featureLimit = -1 |
If set to a value > 0, places a limit on the maximum number of features which will be read from the source.
- Since
- QGIS 3.14
Definition at line 131 of file qgsprocessingparameters.h.
◆ flags
Flags QgsProcessingFeatureSourceDefinition::flags = Flags() |
◆ geometryCheck
◆ selectedFeaturesOnly
bool QgsProcessingFeatureSourceDefinition::selectedFeaturesOnly |
◆ source
QgsProperty QgsProcessingFeatureSourceDefinition::source |
Source definition.
Usually a static property set to a source layer's ID or file name.
Definition at line 118 of file qgsprocessingparameters.h.
The documentation for this class was generated from the following files: