18 #ifndef QGSPROCESSINGPARAMETERS_H
19 #define QGSPROCESSINGPARAMETERS_H
21 #include "qgis_core.h"
67 FlagOverrideDefaultGeometryCheck = 1 << 0,
68 FlagCreateIndividualOutputPerInputFeature = 1 << 1,
70 Q_DECLARE_FLAGS( Flags, Flag )
88 , selectedFeaturesOnly( selectedFeaturesOnly )
89 , featureLimit( featureLimit )
91 , geometryCheck( geometryCheck )
110 , selectedFeaturesOnly( selectedFeaturesOnly )
111 , featureLimit( featureLimit )
113 , geometryCheck( geometryCheck )
132 long long featureLimit = -1;
139 Flags flags = Flags();
157 QVariant toVariant()
const;
165 bool loadVariant(
const QVariantMap &map );
170 return source == other.
source
173 && flags == other.
flags
179 return !( *
this == other );
183 operator QVariant()
const
185 return QVariant::fromValue( *
this );
213 , destinationProject( destinationProject )
223 , destinationProject( destinationProject )
286 QVariant toVariant()
const;
294 bool loadVariant(
const QVariantMap &map );
297 operator QVariant()
const
299 return QVariant::fromValue( *
this );
308 bool mUseRemapping =
false;
348 sipType = sipType_QgsProcessingParameterBoolean;
350 sipType = sipType_QgsProcessingParameterCrs;
352 sipType = sipType_QgsProcessingParameterMapLayer;
354 sipType = sipType_QgsProcessingParameterExtent;
356 sipType = sipType_QgsProcessingParameterPoint;
358 sipType = sipType_QgsProcessingParameterGeometry;
360 sipType = sipType_QgsProcessingParameterFile;
362 sipType = sipType_QgsProcessingParameterMatrix;
364 sipType = sipType_QgsProcessingParameterMultipleLayers;
366 sipType = sipType_QgsProcessingParameterNumber;
368 sipType = sipType_QgsProcessingParameterDistance;
370 sipType = sipType_QgsProcessingParameterDuration;
372 sipType = sipType_QgsProcessingParameterScale;
374 sipType = sipType_QgsProcessingParameterRange;
376 sipType = sipType_QgsProcessingParameterRasterLayer;
378 sipType = sipType_QgsProcessingParameterMeshLayer;
380 sipType = sipType_QgsProcessingParameterEnum;
382 sipType = sipType_QgsProcessingParameterString;
384 sipType = sipType_QgsProcessingParameterExpression;
386 sipType = sipType_QgsProcessingParameterAuthConfig;
388 sipType = sipType_QgsProcessingParameterVectorLayer;
390 sipType = sipType_QgsProcessingParameterField;
392 sipType = sipType_QgsProcessingParameterFeatureSource;
394 sipType = sipType_QgsProcessingParameterFeatureSink;
396 sipType = sipType_QgsProcessingParameterVectorDestination;
398 sipType = sipType_QgsProcessingParameterRasterDestination;
400 sipType = sipType_QgsProcessingParameterFileDestination;
402 sipType = sipType_QgsProcessingParameterFolderDestination;
404 sipType = sipType_QgsProcessingParameterBand;
406 sipType = sipType_QgsProcessingParameterLayout;
408 sipType = sipType_QgsProcessingParameterLayoutItem;
410 sipType = sipType_QgsProcessingParameterColor;
412 sipType = sipType_QgsProcessingParameterCoordinateOperation;
414 sipType = sipType_QgsProcessingParameterMapTheme;
416 sipType = sipType_QgsProcessingParameterDateTime;
418 sipType = sipType_QgsProcessingParameterProviderConnection;
420 sipType = sipType_QgsProcessingParameterDatabaseSchema;
422 sipType = sipType_QgsProcessingParameterDatabaseTable;
424 sipType = sipType_QgsProcessingParameterFieldMapping;
426 sipType = sipType_QgsProcessingParameterTinInputLayers;
428 sipType = sipType_QgsProcessingParameterVectorTileWriterLayers;
430 sipType = sipType_QgsProcessingParameterDxfLayers;
432 sipType = sipType_QgsProcessingParameterMeshDatasetGroups;
434 sipType = sipType_QgsProcessingParameterMeshDatasetTime;
436 sipType = sipType_QgsProcessingParameterPointCloudLayer;
438 sipType = sipType_QgsProcessingParameterAnnotationLayer;
449 FlagAdvanced = 1 << 1,
451 FlagOptional = 1 << 3,
452 FlagIsModelOutput = 1 << 4,
454 Q_DECLARE_FLAGS( Flags, Flag )
460 bool optional =
false,
const QString &help = QString() );
472 virtual QString
type()
const = 0;
486 QString
name()
const {
return mName; }
493 void setName(
const QString &name ) { mName = name; }
507 void setDescription(
const QString &description ) { mDescription = description; }
518 QString
help()
const {
return mHelp; }
529 void setHelp(
const QString &help ) { mHelp = help; }
592 Flags
flags()
const {
return mFlags; }
607 virtual bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const;
613 virtual QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const;
620 virtual QString valueAsPythonComment(
const QVariant &value,
QgsProcessingContext &context )
const;
626 virtual QString asScriptCode()
const;
644 virtual QVariantMap toVariantMap()
const;
651 virtual bool fromVariantMap(
const QVariantMap &map );
673 void setMetadata(
const QVariantMap &metadata ) { mMetadata = metadata; }
699 virtual QString toolTip()
const;
822 bool mIsDynamic =
false;
870 static bool isDynamic(
const QVariantMap ¶meters,
const QString &name );
1077 QgsProcessingContext &context, QString &destinationIdentifier
SIP_OUT, QgsFeatureSink::SinkFlags sinkFlags = QgsFeatureSink::SinkFlags(),
const QVariantMap &createOptions = QVariantMap(),
const QStringList &datasourceOptions = QStringList(),
const QStringList &layerOptions = QStringList() )
SIP_FACTORY;
1100 QgsProcessingContext &context, QString &destinationIdentifier
SIP_OUT, QgsFeatureSink::SinkFlags sinkFlags = QgsFeatureSink::SinkFlags(),
const QVariantMap &createOptions = QVariantMap(),
const QStringList &datasourceOptions = QStringList(),
const QStringList &layerOptions = QStringList() )
SIP_THROW(
QgsProcessingException )
SIP_FACTORY;
1639 static QString descriptionFromName(
const QString &name );
1650 static bool parseScriptCodeParameterOptions(
const QString &code,
bool &isOptional, QString &name, QString &type, QString &definition );
1669 bool optional =
false );
1674 static QString
typeName() {
return QStringLiteral(
"boolean" ); }
1677 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1678 QString asScriptCode()
const override;
1699 QgsProcessingParameterCrs(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
1700 bool optional =
false );
1705 static QString
typeName() {
return QStringLiteral(
"crs" ); }
1708 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1709 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1732 bool optional =
false );
1737 static QString
typeName() {
return QStringLiteral(
"extent" ); }
1740 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1741 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1764 QgsProcessingParameterPoint(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
1765 bool optional =
false );
1770 static QString
typeName() {
return QStringLiteral(
"point" ); }
1773 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1774 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1800 QgsProcessingParameterGeometry(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
bool optional =
false,
const QList< int > &geometryTypes = QList< int >(),
bool allowMultipart =
true );
1805 static QString
typeName() {
return QStringLiteral(
"geometry" ); }
1808 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1809 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1810 QString asScriptCode()
const override;
1812 QVariantMap toVariantMap()
const override;
1813 bool fromVariantMap(
const QVariantMap &map )
override;
1848 QList<int> mGeomTypes;
1849 bool mAllowMultipart;
1877 QgsProcessingParameterFile(
const QString &name,
const QString &description = QString(), Behavior behavior = File,
const QString &extension = QString(),
const QVariant &defaultValue = QVariant(),
1878 bool optional =
false,
const QString &fileFilter = QString() );
1883 static QString
typeName() {
return QStringLiteral(
"file" ); }
1886 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1887 QString asScriptCode()
const override;
1889 QString createFileFilter()
const override;
1921 void setExtension(
const QString &extension );
1929 QString fileFilter()
const;
1940 void setFileFilter(
const QString &filter );
1942 QVariantMap toVariantMap()
const override;
1943 bool fromVariantMap(
const QVariantMap &map )
override;
1948 static QgsProcessingParameterFile *fromScriptCode(
const QString &name,
const QString &description,
bool isOptional,
const QString &definition, Behavior behavior = File )
SIP_FACTORY;
1952 Behavior mBehavior = File;
1954 QString mFileFilter;
1971 bool hasFixedNumberRows =
false,
const QStringList &headers = QStringList(),
1972 const QVariant &defaultValue = QVariant(),
1973 bool optional =
false );
1978 static QString
typeName() {
return QStringLiteral(
"matrix" ); }
1981 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1982 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1989 QStringList headers()
const;
1995 void setHeaders(
const QStringList &headers );
2003 int numberRows()
const;
2011 void setNumberRows(
int rows );
2018 bool hasFixedNumberRows()
const;
2025 void setHasFixedNumberRows(
bool hasFixedNumberRows );
2027 QVariantMap toVariantMap()
const override;
2028 bool fromVariantMap(
const QVariantMap &map )
override;
2037 QStringList mHeaders;
2038 int mNumberRows = 3;
2039 bool mFixedNumberRows =
false;
2057 const QVariant &defaultValue = QVariant(),
2058 bool optional =
false );
2063 static QString
typeName() {
return QStringLiteral(
"multilayer" ); }
2066 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2067 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2068 QString asScriptCode()
const override;
2070 QString createFileFilter()
const override;
2089 int minimumNumberInputs()
const;
2096 void setMinimumNumberInputs(
int minimum );
2098 QVariantMap toVariantMap()
const override;
2099 bool fromVariantMap(
const QVariantMap &map )
override;
2109 int mMinimumNumberInputs = 0;
2146 Type type = Integer,
2147 const QVariant &defaultValue = QVariant(),
2148 bool optional =
false,
2149 double minValue = std::numeric_limits<double>::lowest() + 1,
2150 double maxValue = std::numeric_limits<double>::max()
2156 static QString
typeName() {
return QStringLiteral(
"number" ); }
2159 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2160 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2161 QString toolTip()
const override;
2168 double minimum()
const;
2174 void setMinimum(
double minimum );
2180 double maximum()
const;
2186 void setMaximum(
double maximum );
2192 Type dataType()
const;
2198 void setDataType( Type type );
2200 QVariantMap toVariantMap()
const override;
2201 bool fromVariantMap(
const QVariantMap &map )
override;
2210 double mMin = std::numeric_limits<double>::lowest() + 1;
2211 double mMax = std::numeric_limits<double>::max();
2212 Type mDataType = Integer;
2242 const QVariant &defaultValue = QVariant(),
2243 const QString &parentParameterName = QString(),
2244 bool optional =
false,
2245 double minValue = std::numeric_limits<double>::lowest() + 1,
2246 double maxValue = std::numeric_limits<double>::max() );
2251 static QString
typeName() {
return QStringLiteral(
"distance" ); }
2255 QString type() const override;
2256 QStringList dependsOnOtherParameters() const override;
2257 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
2263 QString parentParameterName() const;
2269 void setParentParameterName( const QString &parentParameterName );
2287 QVariantMap toVariantMap()
const override;
2288 bool fromVariantMap(
const QVariantMap &map )
override;
2292 QString mParentParameterName;
2312 const QVariant &defaultValue = QVariant(),
2313 bool optional =
false,
2314 double minValue = std::numeric_limits<double>::lowest() + 1,
2315 double maxValue = std::numeric_limits<double>::max() );
2320 static QString
typeName() {
return QStringLiteral(
"duration" ); }
2324 QString type() const override;
2325 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
2341 QVariantMap toVariantMap()
const override;
2342 bool fromVariantMap(
const QVariantMap &map )
override;
2368 const QVariant &defaultValue = QVariant(),
2369 bool optional =
false );
2374 static QString
typeName() {
return QStringLiteral(
"scale" ); }
2378 QString type() const override;
2379 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
2403 const QVariant &defaultValue = QVariant(),
2404 bool optional =
false );
2409 static QString
typeName() {
return QStringLiteral(
"range" ); }
2412 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2413 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2428 QVariantMap toVariantMap()
const override;
2429 bool fromVariantMap(
const QVariantMap &map )
override;
2455 bool optional =
false );
2460 static QString
typeName() {
return QStringLiteral(
"raster" ); }
2463 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2464 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2465 QString createFileFilter()
const override;
2487 QgsProcessingParameterEnum(
const QString &name,
const QString &description = QString(),
const QStringList &options = QStringList(),
2488 bool allowMultiple =
false,
2489 const QVariant &defaultValue = QVariant(),
2490 bool optional =
false,
2491 bool usesStaticStrings =
false );
2496 static QString
typeName() {
return QStringLiteral(
"enum" ); }
2499 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2500 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2501 QString valueAsPythonComment(
const QVariant &value,
QgsProcessingContext &context )
const override;
2502 QString asScriptCode()
const override;
2509 QStringList options()
const;
2515 void setOptions(
const QStringList &options );
2521 bool allowMultiple()
const;
2527 void setAllowMultiple(
bool allowMultiple );
2535 bool usesStaticStrings()
const;
2543 void setUsesStaticStrings(
bool usesStaticStrings );
2545 QVariantMap toVariantMap()
const override;
2546 bool fromVariantMap(
const QVariantMap &map )
override;
2555 QStringList mOptions;
2556 bool mAllowMultiple =
false;
2557 bool mUsesStaticStrings =
false;
2595 bool multiLine =
false,
2596 bool optional =
false );
2601 static QString
typeName() {
return QStringLiteral(
"string" ); }
2604 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2605 QString asScriptCode()
const override;
2612 bool multiLine()
const;
2618 void setMultiLine(
bool multiLine );
2620 QVariantMap toVariantMap()
const override;
2621 bool fromVariantMap(
const QVariantMap &map )
override;
2630 bool mMultiLine =
false;
2655 bool optional =
false );
2660 static QString
typeName() {
return QStringLiteral(
"authcfg" ); }
2663 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2664 QString asScriptCode()
const override;
2687 const QString &parentLayerParameterName = QString(),
2688 bool optional =
false );
2693 static QString
typeName() {
return QStringLiteral(
"expression" ); }
2696 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2697 QStringList dependsOnOtherParameters()
const override;
2704 QString parentLayerParameterName()
const;
2710 void setParentLayerParameterName(
const QString &parentLayerParameterName );
2712 QVariantMap toVariantMap()
const override;
2713 bool fromVariantMap(
const QVariantMap &map )
override;
2722 QString mParentLayerParameterName;
2746 QList< int > dataTypes()
const;
2752 void setDataTypes(
const QList< int > &types );
2775 const QString &description = QString(),
2776 const QList< int > &types = QList< int >(),
2777 const QVariant &defaultValue = QVariant(),
2778 bool optional =
false );
2783 static QString
typeName() {
return QStringLiteral(
"vector" ); }
2786 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2787 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2789 QString createFileFilter()
const override;
2791 QVariantMap toVariantMap()
const override;
2792 bool fromVariantMap(
const QVariantMap &map )
override;
2815 const QString &description = QString(),
2816 const QVariant &defaultValue = QVariant(),
2817 bool optional =
false );
2822 static QString
typeName() {
return QStringLiteral(
"mesh" ); }
2825 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2826 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2827 QString createFileFilter()
const override;
2849 bool optional =
false,
2850 const QList< int > &types = QList< int >() );
2855 static QString
typeName() {
return QStringLiteral(
"layer" ); }
2858 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2859 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2860 QString asScriptCode()
const override;
2862 QString createFileFilter()
const override;
2864 QVariantMap toVariantMap()
const override;
2865 bool fromVariantMap(
const QVariantMap &map )
override;
2896 QgsProcessingParameterField(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
2897 const QString &parentLayerParameterName = QString(),
2898 DataType type = Any,
2899 bool allowMultiple =
false,
2900 bool optional =
false,
2901 bool defaultToAllFields =
false );
2906 static QString
typeName() {
return QStringLiteral(
"field" ); }
2909 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2910 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2911 QString asScriptCode()
const override;
2913 QStringList dependsOnOtherParameters()
const override;
2919 QString parentLayerParameterName()
const;
2925 void setParentLayerParameterName(
const QString &parentLayerParameterName );
2931 DataType dataType()
const;
2937 void setDataType( DataType type );
2943 bool allowMultiple()
const;
2949 void setAllowMultiple(
bool allowMultiple );
2960 bool defaultToAllFields()
const;
2971 void setDefaultToAllFields(
bool enabled );
2973 QVariantMap toVariantMap()
const override;
2974 bool fromVariantMap(
const QVariantMap &map )
override;
2983 QString mParentLayerParameterName;
2984 DataType mDataType = Any;
2985 bool mAllowMultiple =
false;
2986 bool mDefaultToAllFields =
false;
3005 const QList< int > &types = QList< int >(),
3006 const QVariant &defaultValue = QVariant(),
bool optional =
false );
3011 static QString
typeName() {
return QStringLiteral(
"source" ); }
3014 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3015 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3016 QString asScriptCode()
const override;
3018 QString createFileFilter()
const override;
3020 QVariantMap toVariantMap()
const override;
3021 bool fromVariantMap(
const QVariantMap &map )
override;
3048 bool optional =
false,
bool createByDefault =
true );
3051 QVariantMap toVariantMap()
const override;
3052 bool fromVariantMap(
const QVariantMap &map )
override;
3054 QString createFileFilter()
const override;
3087 virtual QString generateTemporaryDestination()
const;
3110 bool createByDefault()
const;
3117 void setCreateByDefault(
bool createByDefault );
3142 bool mSupportsNonFileBasedOutputs =
true;
3143 bool mCreateByDefault =
true;
3145 friend class QgsProcessingModelAlgorithm;
3146 friend class TestQgsProcessing;
3169 bool optional =
false,
bool createByDefault =
true,
bool supportsAppend =
false );
3174 static QString
typeName() {
return QStringLiteral(
"sink" ); }
3177 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3178 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3179 QString asScriptCode()
const override;
3181 QString defaultFileExtension() const override;
3182 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
3183 QString createFileFilter() const override;
3190 virtual QStringList supportedOutputVectorLayerExtensions() const;
3202 bool hasGeometry() const;
3218 bool supportsAppend() const;
3228 void setSupportsAppend(
bool supportsAppend );
3230 QVariantMap toVariantMap() const override;
3231 bool fromVariantMap( const QVariantMap &map ) override;
3232 QString generateTemporaryDestination() const override;
3242 bool mSupportsAppend = false;
3267 bool optional =
false,
bool createByDefault =
true );
3272 static QString
typeName() {
return QStringLiteral(
"vectorDestination" ); }
3275 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3276 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3277 QString asScriptCode()
const override;
3279 QString defaultFileExtension() const override;
3280 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
3281 QString createFileFilter() const override;
3288 virtual QStringList supportedOutputVectorLayerExtensions() const;
3300 bool hasGeometry() const;
3308 QVariantMap toVariantMap() const override;
3309 bool fromVariantMap( const QVariantMap &map ) override;
3340 const QVariant &defaultValue = QVariant(),
3341 bool optional =
false,
3342 bool createByDefault =
true );
3347 static QString
typeName() {
return QStringLiteral(
"rasterDestination" ); }
3350 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3351 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3353 QString defaultFileExtension() const override;
3354 QString createFileFilter() const override;
3361 virtual QStringList supportedOutputRasterLayerExtensions() const;
3401 const QString &fileFilter = QString(),
3402 const QVariant &defaultValue = QVariant(),
3403 bool optional =
false,
3404 bool createByDefault =
true );
3409 static QString
typeName() {
return QStringLiteral(
"fileDestination" ); }
3412 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3413 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3415 QString defaultFileExtension() const override;
3416 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
3417 QString createFileFilter() const override;
3423 QString fileFilter() const;
3429 void setFileFilter( const QString &filter );
3431 QVariantMap toVariantMap() const override;
3432 bool fromVariantMap( const QVariantMap &map ) override;
3442 QString mFileFilter;
3460 const QVariant &defaultValue = QVariant(),
3461 bool optional =
false,
3462 bool createByDefault =
true );
3467 static QString
typeName() {
return QStringLiteral(
"folderDestination" ); }
3470 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3472 QString defaultFileExtension() const override;
3494 QgsProcessingParameterBand(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
3495 const QString &parentLayerParameterName = QString(),
3496 bool optional =
false,
3497 bool allowMultiple =
false );
3502 static QString
typeName() {
return QStringLiteral(
"band" ); }
3505 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3506 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3507 QString asScriptCode()
const override;
3508 QStringList dependsOnOtherParameters()
const override;
3515 QString parentLayerParameterName()
const;
3521 void setParentLayerParameterName(
const QString &parentLayerParameterName );
3523 QVariantMap toVariantMap()
const override;
3524 bool fromVariantMap(
const QVariantMap &map )
override;
3536 bool allowMultiple()
const;
3543 void setAllowMultiple(
bool allowMultiple );
3547 QString mParentLayerParameterName;
3548 bool mAllowMultiple =
false;
3570 bool optional =
false );
3575 static QString
typeName() {
return QStringLiteral(
"layout" ); }
3578 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3579 QString asScriptCode()
const override;
3608 const QString &parentLayoutParameterName = QString(),
3610 bool optional =
false );
3615 static QString
typeName() {
return QStringLiteral(
"layoutitem" ); }
3618 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3619 QString asScriptCode()
const override;
3621 QVariantMap toVariantMap()
const override;
3622 bool fromVariantMap(
const QVariantMap &map )
override;
3623 QStringList dependsOnOtherParameters()
const override;
3634 QString parentLayoutParameterName()
const;
3640 void setParentLayoutParameterName(
const QString &name );
3649 int itemType()
const;
3658 void setItemType(
int type );
3661 QString mParentLayoutParameterName;
3683 QgsProcessingParameterColor(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
3684 bool opacityEnabled =
true,
3685 bool optional =
false );
3690 static QString
typeName() {
return QStringLiteral(
"color" ); }
3693 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3694 QString asScriptCode()
const override;
3696 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3697 QVariantMap toVariantMap()
const override;
3698 bool fromVariantMap(
const QVariantMap &map )
override;
3706 bool opacityEnabled()
const;
3715 void setOpacityEnabled(
bool enabled );
3724 bool mAllowOpacity =
true;
3746 const QString &sourceCrsParameterName = QString(),
const QString &destinationCrsParameterName = QString(),
3747 const QVariant &staticSourceCrs = QVariant(),
const QVariant &staticDestinationCrs = QVariant(),
3748 bool optional =
false );
3753 static QString
typeName() {
return QStringLiteral(
"coordinateoperation" ); }
3756 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3757 QString asScriptCode()
const override;
3759 QStringList dependsOnOtherParameters()
const override;
3761 QVariantMap toVariantMap()
const override;
3762 bool fromVariantMap(
const QVariantMap &map )
override;
3827 QString mSourceParameterName;
3828 QString mDestParameterName;
3829 QVariant mSourceCrs;
3852 bool optional =
false );
3857 static QString
typeName() {
return QStringLiteral(
"maptheme" ); }
3860 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3861 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3862 QString asScriptCode()
const override;
3864 QVariantMap toVariantMap()
const override;
3865 bool fromVariantMap(
const QVariantMap &map )
override;
3903 Type type = DateTime,
3904 const QVariant &defaultValue = QVariant(),
3905 bool optional =
false,
3906 const QDateTime &minValue = QDateTime(),
3907 const QDateTime &maxValue = QDateTime()
3913 static QString
typeName() {
return QStringLiteral(
"datetime" ); }
3916 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3917 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3918 QString toolTip()
const override;
3928 QDateTime minimum()
const;
3941 void setMinimum(
const QDateTime &minimum );
3950 QDateTime maximum()
const;
3963 void setMaximum(
const QDateTime &maximum );
3969 Type dataType()
const;
3975 void setDataType( Type type );
3977 QVariantMap toVariantMap()
const override;
3978 bool fromVariantMap(
const QVariantMap &map )
override;
3989 Type mDataType = DateTime;
4014 bool optional =
false );
4019 static QString
typeName() {
return QStringLiteral(
"providerconnection" ); }
4022 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4023 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4024 QString asScriptCode()
const override;
4026 QVariantMap toVariantMap()
const override;
4027 bool fromVariantMap(
const QVariantMap &map )
override;
4048 QString mProviderId;
4074 QgsProcessingParameterDatabaseSchema(
const QString &name,
const QString &description,
const QString &connectionParameterName = QString(),
const QVariant &defaultValue = QVariant(),
4075 bool optional =
false );
4080 static QString
typeName() {
return QStringLiteral(
"databaseschema" ); }
4083 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4084 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4085 QString asScriptCode()
const override;
4087 QVariantMap toVariantMap()
const override;
4088 bool fromVariantMap(
const QVariantMap &map )
override;
4089 QStringList dependsOnOtherParameters()
const override;
4095 QString parentConnectionParameterName()
const;
4101 void setParentConnectionParameterName(
const QString &name );
4110 QString mParentConnectionParameterName;
4138 const QString &connectionParameterName = QString(),
4139 const QString &schemaParameterName = QString(),
4140 const QVariant &defaultValue = QVariant(),
4141 bool optional =
false,
4142 bool allowNewTableNames =
false );
4147 static QString
typeName() {
return QStringLiteral(
"databasetable" ); }
4150 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4151 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4152 QString asScriptCode()
const override;
4154 QVariantMap toVariantMap()
const override;
4155 bool fromVariantMap(
const QVariantMap &map )
override;
4156 QStringList dependsOnOtherParameters()
const override;
4162 QString parentConnectionParameterName()
const;
4168 void setParentConnectionParameterName(
const QString &name );
4174 QString parentSchemaParameterName()
const;
4180 void setParentSchemaParameterName(
const QString &name );
4193 bool allowNewTableNames()
const;
4201 void setAllowNewTableNames(
bool allowed );
4205 QString mParentConnectionParameterName;
4206 QString mParentSchemaParameterName;
4207 bool mAllowNewTableNames =
false;
4225 const QVariant &defaultValue = QVariant(),
bool optional =
false );
4230 static QString
typeName() {
return QStringLiteral(
"pointcloud" ); }
4233 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4234 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4235 QString createFileFilter()
const override;
4258 const QVariant &defaultValue = QVariant(),
bool optional =
false );
4263 static QString
typeName() {
return QStringLiteral(
"annotation" ); }
4266 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4267 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
Represents a map layer containing a set of georeferenced annotations, e.g.
This class represents a coordinate reference system (CRS).
This class wraps a request for features to a vector layer (or directly its vector data provider).
InvalidGeometryCheck
Handling of features with invalid geometries.
@ GeometryAbortOnInvalid
Close iterator on encountering any features with invalid geometry. This requires a slow geometry vali...
An interface for objects which accept features via addFeature(s) methods.
Container of fields for a vector layer.
Abstract interface for classes which generate a file filter string.
A geometry is the spatial representation of a feature.
Base class for graphical items within a QgsLayout.
Base class for all map layer types.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Represents a map layer supporting display of point clouds.
A class to represent a 2D point.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
Abstract base class for processing algorithms.
Contains information about the context in which a processing algorithm is executed.
Base class for all parameter definitions which represent file or layer destinations,...
virtual QString defaultFileExtension() const =0
Returns the default file extension for destination file paths associated with this parameter.
bool supportsNonFileBasedOutput() const
Returns true if the destination parameter supports non filed-based outputs, such as memory layers or ...
virtual QgsProcessingOutputDefinition * toOutputDefinition() const =0
Returns a new QgsProcessingOutputDefinition corresponding to the definition of the destination parame...
bool isDestination() const override
Returns true if this parameter represents a file or layer destination, e.g.
QgsProcessingProvider * originalProvider() const
Original (source) provider which this parameter has been derived from.
void setSupportsNonFileBasedOutput(bool supportsNonFileBasedOutput)
Sets whether the destination parameter supports non filed-based outputs, such as memory layers or dir...
Custom exception class for processing related exceptions.
Encapsulates settings relating to a feature source input to a processing algorithm.
Flags flags
Flags which dictate source behavior.
bool operator!=(const QgsProcessingFeatureSourceDefinition &other) const
bool selectedFeaturesOnly
true if only selected features in the source should be used by algorithms.
QgsFeatureRequest::InvalidGeometryCheck geometryCheck
Geometry check method to apply to this source.
bool operator==(const QgsProcessingFeatureSourceDefinition &other) const
QgsProperty source
Source definition.
long long featureLimit
If set to a value > 0, places a limit on the maximum number of features which will be read from the s...
Flag
Flags which control source behavior.
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.
QgsFeatureSource subclass which proxies methods to an underlying QgsFeatureSource,...
Base class for providing feedback from a processing algorithm.
Base class for the definition of processing outputs.
Encapsulates settings relating to a feature sink or output raster layer for a processing algorithm.
QgsProcessingOutputLayerDefinition(const QgsProperty &sink, QgsProject *destinationProject=nullptr)
Constructor for QgsProcessingOutputLayerDefinition, accepting a QgsProperty sink/layer.
QgsProperty sink
Sink/layer definition.
bool useRemapping() const
Returns true if the output uses a remapping definition.
QgsProcessingOutputLayerDefinition(const QString &sink=QString(), QgsProject *destinationProject=nullptr)
Constructor for QgsProcessingOutputLayerDefinition, accepting a static sink/layer string.
QgsRemappingSinkDefinition remappingDefinition() const
Returns the output remapping definition, if useRemapping() is true.
QString destinationName
Name to use for sink if it's to be loaded into a destination project.
QVariantMap createOptions
Map of optional sink/layer creation options, which are passed to the underlying provider when creatin...
An annotation layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A string parameter for authentication configuration ID values.
static QString typeName()
Returns the type name for the parameter class.
A raster band parameter for Processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A boolean parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A color parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A coordinate operation parameter for processing algorithms, for selection between available coordinat...
static QString typeName()
Returns the type name for the parameter class.
QVariant sourceCrs() const
Returns the static source CRS, or an invalid value if this is not set.
QString destinationCrsParameterName() const
Returns the name of the destination CRS parameter, or an empty string if this is not set.
void setDestinationCrsParameterName(const QString &name)
Sets the name of the destination CRS parameter.
void setSourceCrs(const QVariant &crs)
Sets the static source crs.
QVariant destinationCrs() const
Returns the static destination CRS, or an invalid value if this is not set.
void setDestinationCrs(const QVariant &crs)
Sets the static destination crs.
void setSourceCrsParameterName(const QString &name)
Sets the name of the source CRS parameter.
QString sourceCrsParameterName() const
Returns the name of the source CRS parameter, or an empty string if this is not set.
A coordinate reference system parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A database schema parameter for processing algorithms, allowing users to select from existing schemas...
static QString typeName()
Returns the type name for the parameter class.
A database table name parameter for processing algorithms, allowing users to select from existing dat...
static QString typeName()
Returns the type name for the parameter class.
A datetime (or pure date or time) parameter for processing algorithms.
@ DateTime
Datetime values.
static QString typeName()
Returns the type name for the parameter class.
Base class for the definition of processing parameters.
QString mHelp
Parameter help.
QVariant defaultValue() const
Returns the default value for the parameter.
void setDefaultValue(const QVariant &value)
Sets the default value for the parameter.
QVariant guiDefaultValueOverride() const
Returns the default value to use in the GUI for the parameter.
QStringList additionalExpressionContextVariables() const
Returns a list of additional expression context variables which are available for use when evaluating...
QStringList mAdditionalExpressionVariables
Additional expression context variables exposed for use by this parameter.
QString help() const
Returns the help for the parameter.
void setMetadata(const QVariantMap &metadata)
Sets the parameter's freeform metadata.
Flags mFlags
Parameter flags.
virtual QgsProcessingParameterDefinition * clone() const =0
Creates a clone of the parameter definition.
QString mName
Parameter name.
void setGuiDefaultValueOverride(const QVariant &value)
Sets the default value to use for the parameter in GUI widgets.
QVariantMap metadata() const
Returns the parameter's freeform metadata.
QString description() const
Returns the description for the parameter.
QString mDynamicLayerParameterName
Linked vector layer parameter name for dynamic properties.
QVariant defaultValueForGui() const
Returns the default value to use for the parameter in a GUI.
virtual bool isDestination() const
Returns true if this parameter represents a file or layer destination, e.g.
void setDescription(const QString &description)
Sets the description for the parameter.
void setDynamicLayerParameterName(const QString &name)
Sets the name for the parameter for a layer linked to a dynamic parameter, or an empty string if this...
QString dynamicLayerParameterName() const
Returns the name of the parameter for a layer linked to a dynamic parameter, or an empty string if th...
void setAdditionalExpressionContextVariables(const QStringList &variables)
Sets a list of additional expression context variables which are available for use when evaluating th...
QVariantMap mMetadata
Freeform metadata for parameter. Mostly used by widget wrappers to customize their appearance and beh...
void setName(const QString &name)
Sets the name of the parameter.
QString mDescription
Parameter description.
virtual QString type() const =0
Unique parameter type name.
void setDynamicPropertyDefinition(const QgsPropertyDefinition &definition)
Sets the property definition for dynamic properties.
Flags flags() const
Returns any flags associated with the parameter.
void setHelp(const QString &help)
Sets the help for the parameter.
QString name() const
Returns the name of the parameter.
QVariant mDefault
Default value for parameter.
virtual QStringList dependsOnOtherParameters() const
Returns a list of other parameter names on which this parameter is dependent (e.g.
void setIsDynamic(bool dynamic)
Sets whether the parameter is dynamic, and can support data-defined values (i.e.
QVariantMap & metadata()
Returns the parameter's freeform metadata.
QVariant mGuiDefault
Default value for parameter in GUI.
QgsPropertyDefinition mPropertyDefinition
Data defined property definition.
bool isDynamic() const
Returns true if the parameter supports is dynamic, and can support data-defined values (i....
void setFlags(Flags flags)
Sets the flags associated with the parameter.
virtual ~QgsProcessingParameterDefinition()=default
QgsPropertyDefinition dynamicPropertyDefinition() const
Returns the property definition for dynamic properties.
A double numeric parameter for distance values.
void setDefaultUnit(QgsUnitTypes::DistanceUnit unit)
Sets the default distance unit for the parameter.
static QString typeName()
Returns the type name for the parameter class.
A double numeric parameter for duration values.
void setDefaultUnit(QgsUnitTypes::TemporalUnit unit)
Sets the default duration unit for the parameter.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
An enum based parameter for processing algorithms, allowing for selection from predefined values.
static QString typeName()
Returns the type name for the parameter class.
An expression parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A rectangular map extent parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A feature sink output for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
An input feature source (such as vector layers) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
A vector layer or feature source field parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
DataType
Field data types.
A generic file based destination parameter, for specifying the destination path for a file (non-map l...
static QString typeName()
Returns the type name for the parameter class.
An input file or folder parameter for processing algorithms.
QString extension() const
Returns any specified file extension for the parameter.
static QString typeName()
Returns the type name for the parameter class.
void setBehavior(Behavior behavior)
Sets the parameter behavior (e.g.
Behavior
Parameter behavior.
@ Folder
Parameter is a folder.
Behavior behavior() const
Returns the parameter behavior (e.g.
A folder destination parameter, for specifying the destination path for a folder created by the algor...
static QString typeName()
Returns the type name for the parameter class.
A geometry parameter for processing algorithms.
void setGeometryTypes(const QList< int > &geometryTypes)
Sets the allowed geometryTypes, as a list of QgsWkbTypes::GeometryType values.
bool allowMultipart() const
Returns the parameter allow multipart geometries.
QList< int > geometryTypes() const
Returns the parameter allowed geometries, as a list of QgsWkbTypes::GeometryType values.
void setAllowMultipart(bool allowMultipart)
Sets the allow multipart geometries.
static QString typeName()
Returns the type name for the parameter class.
A print layout item parameter, allowing users to select a particular item from a print layout.
static QString typeName()
Returns the type name for the parameter class.
A print layout parameter, allowing users to select a print layout.
static QString typeName()
Returns the type name for the parameter class.
Can be inherited by parameters which require limits to their acceptable data types.
QList< int > mDataTypes
List of acceptable data types for the parameter.
A map layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A map theme parameter for processing algorithms, allowing users to select an existing map theme from ...
static QString typeName()
Returns the type name for the parameter class.
A table (matrix) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
A mesh layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A parameter for processing algorithms which accepts multiple map layers.
static QString typeName()
Returns the type name for the parameter class.
A numeric parameter for processing algorithms.
@ Double
Double/float values.
static QString typeName()
Returns the type name for the parameter class.
A point cloud layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A point parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A data provider connection parameter for processing algorithms, allowing users to select from availab...
static QString typeName()
Returns the type name for the parameter class.
void setProviderId(const QString &provider)
Sets the ID of the provider associated with the connections.
QString providerId() const
Returns the ID of the provider associated with the connections.
A numeric range parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A raster layer destination parameter, for specifying the destination path for a raster layer created ...
static QString typeName()
Returns the type name for the parameter class.
A raster layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A double numeric parameter for map scale values.
static QString typeName()
Returns the type name for the parameter class.
A string parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A vector layer destination parameter, for specifying the destination path for a vector layer created ...
static QString typeName()
Returns the type name for the parameter class.
A vector layer (with or without geometry) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
A collection of utilities for working with parameters when running a processing algorithm.
Abstract base class for processing providers.
LayerHint
Layer type hints.
@ UnknownType
Unknown layer type.
Contains enumerations and other constants for use in processing algorithms and parameters.
PythonOutputType
Available Python output types.
@ PythonQgsProcessingAlgorithmSubclass
Full Python QgsProcessingAlgorithm subclass.
SourceType
Data source types enum.
@ TypeVectorAnyGeometry
Any vector layer with geometry.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition for a property.
A store for object properties.
Represents a raster layer.
A rectangle specified with double values.
Defines the parameters used to remap features when creating a QgsRemappingProxyFeatureSink.
Helper functions for various unit types.
DistanceUnit
Units of distance.
@ DistanceUnknownUnit
Unknown distance unit.
TemporalUnit
Temporal units.
@ TemporalMilliseconds
Milliseconds.
Represents a vector layer which manages a vector based data sets.
Type
The WKB type describes the number of dimensions a geometry has.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into allowing algorithms to be written in pure substantial changes are required in order to port existing x Processing algorithms for QGIS x The most significant changes are outlined not GeoAlgorithm For algorithms which operate on features one by consider subclassing the QgsProcessingFeatureBasedAlgorithm class This class allows much of the boilerplate code for looping over features from a vector layer to be bypassed and instead requires implementation of a processFeature method Ensure that your algorithm(or algorithm 's parent class) implements the new pure virtual createInstance(self) call
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
QList< const QgsProcessingParameterDefinition * > QgsProcessingParameterDefinitions
List of processing parameters.
const QgsCoordinateReferenceSystem & crs