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_QgsProcessingParameterPointCloudDestination;
402 sipType = sipType_QgsProcessingParameterFileDestination;
404 sipType = sipType_QgsProcessingParameterFolderDestination;
406 sipType = sipType_QgsProcessingParameterBand;
408 sipType = sipType_QgsProcessingParameterLayout;
410 sipType = sipType_QgsProcessingParameterLayoutItem;
412 sipType = sipType_QgsProcessingParameterColor;
414 sipType = sipType_QgsProcessingParameterCoordinateOperation;
416 sipType = sipType_QgsProcessingParameterMapTheme;
418 sipType = sipType_QgsProcessingParameterDateTime;
420 sipType = sipType_QgsProcessingParameterProviderConnection;
422 sipType = sipType_QgsProcessingParameterDatabaseSchema;
424 sipType = sipType_QgsProcessingParameterDatabaseTable;
426 sipType = sipType_QgsProcessingParameterFieldMapping;
428 sipType = sipType_QgsProcessingParameterTinInputLayers;
430 sipType = sipType_QgsProcessingParameterVectorTileWriterLayers;
432 sipType = sipType_QgsProcessingParameterDxfLayers;
434 sipType = sipType_QgsProcessingParameterMeshDatasetGroups;
436 sipType = sipType_QgsProcessingParameterMeshDatasetTime;
438 sipType = sipType_QgsProcessingParameterPointCloudLayer;
440 sipType = sipType_QgsProcessingParameterAnnotationLayer;
451 FlagAdvanced = 1 << 1,
453 FlagOptional = 1 << 3,
454 FlagIsModelOutput = 1 << 4,
456 Q_DECLARE_FLAGS( Flags, Flag )
462 bool optional =
false,
const QString &help = QString() );
474 virtual QString
type()
const = 0;
488 QString
name()
const {
return mName; }
495 void setName(
const QString &name ) { mName = name; }
509 void setDescription(
const QString &description ) { mDescription = description; }
520 QString
help()
const {
return mHelp; }
531 void setHelp(
const QString &help ) { mHelp = help; }
594 Flags
flags()
const {
return mFlags; }
609 virtual bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const;
618 virtual QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const;
631 virtual QVariant valueAsJsonObject(
const QVariant &value,
QgsProcessingContext &context )
const;
668 virtual QString valueAsPythonComment(
const QVariant &value,
QgsProcessingContext &context )
const;
674 virtual QString asScriptCode()
const;
692 virtual QVariantMap toVariantMap()
const;
699 virtual bool fromVariantMap(
const QVariantMap &map );
721 void setMetadata(
const QVariantMap &metadata ) { mMetadata = metadata; }
747 virtual QString toolTip()
const;
870 bool mIsDynamic =
false;
918 static bool isDynamic(
const QVariantMap ¶meters,
const QString &name );
1125 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;
1148 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;
1687 static QString descriptionFromName(
const QString &name );
1698 static bool parseScriptCodeParameterOptions(
const QString &code,
bool &isOptional, QString &name, QString &type, QString &definition );
1717 bool optional =
false );
1722 static QString
typeName() {
return QStringLiteral(
"boolean" ); }
1725 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1726 QString asScriptCode()
const override;
1747 QgsProcessingParameterCrs(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
1748 bool optional =
false );
1753 static QString
typeName() {
return QStringLiteral(
"crs" ); }
1756 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1757 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1780 bool optional =
false );
1785 static QString
typeName() {
return QStringLiteral(
"extent" ); }
1788 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1789 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1812 QgsProcessingParameterPoint(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
1813 bool optional =
false );
1818 static QString
typeName() {
return QStringLiteral(
"point" ); }
1821 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1822 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1848 QgsProcessingParameterGeometry(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
bool optional =
false,
const QList< int > &geometryTypes = QList< int >(),
bool allowMultipart =
true );
1853 static QString
typeName() {
return QStringLiteral(
"geometry" ); }
1856 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1857 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
1858 QString asScriptCode()
const override;
1860 QVariantMap toVariantMap()
const override;
1861 bool fromVariantMap(
const QVariantMap &map )
override;
1896 QList<int> mGeomTypes;
1897 bool mAllowMultipart;
1925 QgsProcessingParameterFile(
const QString &name,
const QString &description = QString(), Behavior behavior = File,
const QString &extension = QString(),
const QVariant &defaultValue = QVariant(),
1926 bool optional =
false,
const QString &fileFilter = QString() );
1931 static QString
typeName() {
return QStringLiteral(
"file" ); }
1934 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
1935 QString asScriptCode()
const override;
1937 QString createFileFilter()
const override;
1969 void setExtension(
const QString &extension );
1977 QString fileFilter()
const;
1988 void setFileFilter(
const QString &filter );
1990 QVariantMap toVariantMap()
const override;
1991 bool fromVariantMap(
const QVariantMap &map )
override;
1996 static QgsProcessingParameterFile *fromScriptCode(
const QString &name,
const QString &description,
bool isOptional,
const QString &definition, Behavior behavior = File )
SIP_FACTORY;
2000 Behavior mBehavior = File;
2002 QString mFileFilter;
2019 bool hasFixedNumberRows =
false,
const QStringList &headers = QStringList(),
2020 const QVariant &defaultValue = QVariant(),
2021 bool optional =
false );
2026 static QString
typeName() {
return QStringLiteral(
"matrix" ); }
2029 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2030 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2037 QStringList headers()
const;
2043 void setHeaders(
const QStringList &headers );
2051 int numberRows()
const;
2059 void setNumberRows(
int rows );
2066 bool hasFixedNumberRows()
const;
2073 void setHasFixedNumberRows(
bool hasFixedNumberRows );
2075 QVariantMap toVariantMap()
const override;
2076 bool fromVariantMap(
const QVariantMap &map )
override;
2085 QStringList mHeaders;
2086 int mNumberRows = 3;
2087 bool mFixedNumberRows =
false;
2105 const QVariant &defaultValue = QVariant(),
2106 bool optional =
false );
2111 static QString
typeName() {
return QStringLiteral(
"multilayer" ); }
2114 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2115 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2116 QString asScriptCode()
const override;
2118 QString createFileFilter()
const override;
2137 int minimumNumberInputs()
const;
2144 void setMinimumNumberInputs(
int minimum );
2146 QVariantMap toVariantMap()
const override;
2147 bool fromVariantMap(
const QVariantMap &map )
override;
2157 int mMinimumNumberInputs = 0;
2194 Type type = Integer,
2195 const QVariant &defaultValue = QVariant(),
2196 bool optional =
false,
2197 double minValue = std::numeric_limits<double>::lowest() + 1,
2198 double maxValue = std::numeric_limits<double>::max()
2204 static QString
typeName() {
return QStringLiteral(
"number" ); }
2207 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2208 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2209 QString toolTip()
const override;
2216 double minimum()
const;
2222 void setMinimum(
double minimum );
2228 double maximum()
const;
2234 void setMaximum(
double maximum );
2240 Type dataType()
const;
2246 void setDataType( Type type );
2248 QVariantMap toVariantMap()
const override;
2249 bool fromVariantMap(
const QVariantMap &map )
override;
2258 double mMin = std::numeric_limits<double>::lowest() + 1;
2259 double mMax = std::numeric_limits<double>::max();
2260 Type mDataType = Integer;
2290 const QVariant &defaultValue = QVariant(),
2291 const QString &parentParameterName = QString(),
2292 bool optional =
false,
2293 double minValue = std::numeric_limits<double>::lowest() + 1,
2294 double maxValue = std::numeric_limits<double>::max() );
2299 static QString
typeName() {
return QStringLiteral(
"distance" ); }
2303 QString type() const override;
2304 QStringList dependsOnOtherParameters() const override;
2305 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
2311 QString parentParameterName() const;
2317 void setParentParameterName( const QString &parentParameterName );
2335 QVariantMap toVariantMap()
const override;
2336 bool fromVariantMap(
const QVariantMap &map )
override;
2340 QString mParentParameterName;
2360 const QVariant &defaultValue = QVariant(),
2361 bool optional =
false,
2362 double minValue = std::numeric_limits<double>::lowest() + 1,
2363 double maxValue = std::numeric_limits<double>::max() );
2368 static QString
typeName() {
return QStringLiteral(
"duration" ); }
2372 QString type() const override;
2373 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
2389 QVariantMap toVariantMap()
const override;
2390 bool fromVariantMap(
const QVariantMap &map )
override;
2416 const QVariant &defaultValue = QVariant(),
2417 bool optional =
false );
2422 static QString
typeName() {
return QStringLiteral(
"scale" ); }
2426 QString type() const override;
2427 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
2451 const QVariant &defaultValue = QVariant(),
2452 bool optional =
false );
2457 static QString
typeName() {
return QStringLiteral(
"range" ); }
2460 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2461 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2476 QVariantMap toVariantMap()
const override;
2477 bool fromVariantMap(
const QVariantMap &map )
override;
2503 bool optional =
false );
2508 static QString
typeName() {
return QStringLiteral(
"raster" ); }
2511 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2512 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2513 QString createFileFilter()
const override;
2547 QgsProcessingParameterEnum(
const QString &name,
const QString &description = QString(),
const QStringList &options = QStringList(),
2548 bool allowMultiple =
false,
2549 const QVariant &defaultValue = QVariant(),
2550 bool optional =
false,
2551 bool usesStaticStrings =
false );
2556 static QString
typeName() {
return QStringLiteral(
"enum" ); }
2559 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2560 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2561 QString valueAsPythonComment(
const QVariant &value,
QgsProcessingContext &context )
const override;
2562 QString asScriptCode()
const override;
2569 QStringList options()
const;
2575 void setOptions(
const QStringList &options );
2581 bool allowMultiple()
const;
2587 void setAllowMultiple(
bool allowMultiple );
2595 bool usesStaticStrings()
const;
2603 void setUsesStaticStrings(
bool usesStaticStrings );
2605 QVariantMap toVariantMap()
const override;
2606 bool fromVariantMap(
const QVariantMap &map )
override;
2615 QStringList mOptions;
2616 bool mAllowMultiple =
false;
2617 bool mUsesStaticStrings =
false;
2655 bool multiLine =
false,
2656 bool optional =
false );
2661 static QString
typeName() {
return QStringLiteral(
"string" ); }
2664 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2665 QString asScriptCode()
const override;
2672 bool multiLine()
const;
2678 void setMultiLine(
bool multiLine );
2680 QVariantMap toVariantMap()
const override;
2681 bool fromVariantMap(
const QVariantMap &map )
override;
2690 bool mMultiLine =
false;
2715 bool optional =
false );
2720 static QString
typeName() {
return QStringLiteral(
"authcfg" ); }
2723 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2724 QString asScriptCode()
const override;
2747 const QString &parentLayerParameterName = QString(),
2748 bool optional =
false );
2753 static QString
typeName() {
return QStringLiteral(
"expression" ); }
2756 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2757 QStringList dependsOnOtherParameters()
const override;
2764 QString parentLayerParameterName()
const;
2770 void setParentLayerParameterName(
const QString &parentLayerParameterName );
2772 QVariantMap toVariantMap()
const override;
2773 bool fromVariantMap(
const QVariantMap &map )
override;
2782 QString mParentLayerParameterName;
2806 QList< int > dataTypes()
const;
2812 void setDataTypes(
const QList< int > &types );
2835 const QString &description = QString(),
2836 const QList< int > &types = QList< int >(),
2837 const QVariant &defaultValue = QVariant(),
2838 bool optional =
false );
2843 static QString
typeName() {
return QStringLiteral(
"vector" ); }
2846 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2847 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2849 QString createFileFilter()
const override;
2851 QVariantMap toVariantMap()
const override;
2852 bool fromVariantMap(
const QVariantMap &map )
override;
2875 const QString &description = QString(),
2876 const QVariant &defaultValue = QVariant(),
2877 bool optional =
false );
2882 static QString
typeName() {
return QStringLiteral(
"mesh" ); }
2885 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2886 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2887 QString createFileFilter()
const override;
2909 bool optional =
false,
2910 const QList< int > &types = QList< int >() );
2915 static QString
typeName() {
return QStringLiteral(
"layer" ); }
2918 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2919 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2920 QString asScriptCode()
const override;
2922 QString createFileFilter()
const override;
2924 QVariantMap toVariantMap()
const override;
2925 bool fromVariantMap(
const QVariantMap &map )
override;
2956 QgsProcessingParameterField(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
2957 const QString &parentLayerParameterName = QString(),
2958 DataType type = Any,
2959 bool allowMultiple =
false,
2960 bool optional =
false,
2961 bool defaultToAllFields =
false );
2966 static QString
typeName() {
return QStringLiteral(
"field" ); }
2969 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
2970 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
2971 QString asScriptCode()
const override;
2973 QStringList dependsOnOtherParameters()
const override;
2979 QString parentLayerParameterName()
const;
2985 void setParentLayerParameterName(
const QString &parentLayerParameterName );
2991 DataType dataType()
const;
2997 void setDataType( DataType type );
3003 bool allowMultiple()
const;
3009 void setAllowMultiple(
bool allowMultiple );
3020 bool defaultToAllFields()
const;
3031 void setDefaultToAllFields(
bool enabled );
3033 QVariantMap toVariantMap()
const override;
3034 bool fromVariantMap(
const QVariantMap &map )
override;
3043 QString mParentLayerParameterName;
3044 DataType mDataType = Any;
3045 bool mAllowMultiple =
false;
3046 bool mDefaultToAllFields =
false;
3065 const QList< int > &types = QList< int >(),
3066 const QVariant &defaultValue = QVariant(),
bool optional =
false );
3071 static QString
typeName() {
return QStringLiteral(
"source" ); }
3074 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3075 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3076 QString asScriptCode()
const override;
3078 QString createFileFilter()
const override;
3080 QVariantMap toVariantMap()
const override;
3081 bool fromVariantMap(
const QVariantMap &map )
override;
3108 bool optional =
false,
bool createByDefault =
true );
3111 QVariantMap toVariantMap()
const override;
3112 bool fromVariantMap(
const QVariantMap &map )
override;
3114 QString createFileFilter()
const override;
3147 virtual QString generateTemporaryDestination()
const;
3170 bool createByDefault()
const;
3177 void setCreateByDefault(
bool createByDefault );
3202 bool mSupportsNonFileBasedOutputs =
true;
3203 bool mCreateByDefault =
true;
3205 friend class QgsProcessingModelAlgorithm;
3206 friend class TestQgsProcessing;
3207 friend class TestQgsProcessingModelAlgorithm;
3230 bool optional =
false,
bool createByDefault =
true,
bool supportsAppend =
false );
3235 static QString
typeName() {
return QStringLiteral(
"sink" ); }
3238 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3239 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3240 QString asScriptCode()
const override;
3242 QString defaultFileExtension() const override;
3243 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
3244 QString createFileFilter() const override;
3251 virtual QStringList supportedOutputVectorLayerExtensions() const;
3263 bool hasGeometry() const;
3279 bool supportsAppend() const;
3289 void setSupportsAppend(
bool supportsAppend );
3291 QVariantMap toVariantMap() const override;
3292 bool fromVariantMap( const QVariantMap &map ) override;
3293 QString generateTemporaryDestination() const override;
3303 bool mSupportsAppend = false;
3328 bool optional =
false,
bool createByDefault =
true );
3333 static QString
typeName() {
return QStringLiteral(
"vectorDestination" ); }
3336 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3337 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3338 QString asScriptCode()
const override;
3340 QString defaultFileExtension() const override;
3341 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
3342 QString createFileFilter() const override;
3349 virtual QStringList supportedOutputVectorLayerExtensions() const;
3361 bool hasGeometry() const;
3369 QVariantMap toVariantMap() const override;
3370 bool fromVariantMap( const QVariantMap &map ) override;
3401 const QVariant &defaultValue = QVariant(),
3402 bool optional =
false,
3403 bool createByDefault =
true );
3408 static QString
typeName() {
return QStringLiteral(
"rasterDestination" ); }
3411 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3412 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3414 QString defaultFileExtension() const override;
3415 QString createFileFilter() const override;
3422 virtual QStringList supportedOutputRasterLayerExtensions() const;
3462 const QString &fileFilter = QString(),
3463 const QVariant &defaultValue = QVariant(),
3464 bool optional =
false,
3465 bool createByDefault =
true );
3470 static QString
typeName() {
return QStringLiteral(
"fileDestination" ); }
3473 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3474 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3476 QString defaultFileExtension() const override;
3477 QString asPythonString(
QgsProcessing::PythonOutputType outputType =
QgsProcessing::PythonQgsProcessingAlgorithmSubclass ) const override;
3478 QString createFileFilter() const override;
3484 QString fileFilter() const;
3490 void setFileFilter( const QString &filter );
3492 QVariantMap toVariantMap() const override;
3493 bool fromVariantMap( const QVariantMap &map ) override;
3503 QString mFileFilter;
3521 const QVariant &defaultValue = QVariant(),
3522 bool optional =
false,
3523 bool createByDefault =
true );
3528 static QString
typeName() {
return QStringLiteral(
"folderDestination" ); }
3531 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3533 QString defaultFileExtension() const override;
3555 QgsProcessingParameterBand(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
3556 const QString &parentLayerParameterName = QString(),
3557 bool optional =
false,
3558 bool allowMultiple =
false );
3563 static QString
typeName() {
return QStringLiteral(
"band" ); }
3566 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3567 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3568 QString asScriptCode()
const override;
3569 QStringList dependsOnOtherParameters()
const override;
3576 QString parentLayerParameterName()
const;
3582 void setParentLayerParameterName(
const QString &parentLayerParameterName );
3584 QVariantMap toVariantMap()
const override;
3585 bool fromVariantMap(
const QVariantMap &map )
override;
3597 bool allowMultiple()
const;
3604 void setAllowMultiple(
bool allowMultiple );
3608 QString mParentLayerParameterName;
3609 bool mAllowMultiple =
false;
3631 bool optional =
false );
3636 static QString
typeName() {
return QStringLiteral(
"layout" ); }
3639 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3640 QString asScriptCode()
const override;
3669 const QString &parentLayoutParameterName = QString(),
3671 bool optional =
false );
3676 static QString
typeName() {
return QStringLiteral(
"layoutitem" ); }
3679 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3680 QString asScriptCode()
const override;
3682 QVariantMap toVariantMap()
const override;
3683 bool fromVariantMap(
const QVariantMap &map )
override;
3684 QStringList dependsOnOtherParameters()
const override;
3695 QString parentLayoutParameterName()
const;
3701 void setParentLayoutParameterName(
const QString &name );
3710 int itemType()
const;
3719 void setItemType(
int type );
3722 QString mParentLayoutParameterName;
3744 QgsProcessingParameterColor(
const QString &name,
const QString &description = QString(),
const QVariant &defaultValue = QVariant(),
3745 bool opacityEnabled =
true,
3746 bool optional =
false );
3751 static QString
typeName() {
return QStringLiteral(
"color" ); }
3754 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3755 QString asScriptCode()
const override;
3757 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3758 QVariantMap toVariantMap()
const override;
3759 bool fromVariantMap(
const QVariantMap &map )
override;
3767 bool opacityEnabled()
const;
3776 void setOpacityEnabled(
bool enabled );
3785 bool mAllowOpacity =
true;
3807 const QString &sourceCrsParameterName = QString(),
const QString &destinationCrsParameterName = QString(),
3808 const QVariant &staticSourceCrs = QVariant(),
const QVariant &staticDestinationCrs = QVariant(),
3809 bool optional =
false );
3814 static QString
typeName() {
return QStringLiteral(
"coordinateoperation" ); }
3817 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3818 QString asScriptCode()
const override;
3820 QStringList dependsOnOtherParameters()
const override;
3822 QVariantMap toVariantMap()
const override;
3823 bool fromVariantMap(
const QVariantMap &map )
override;
3888 QString mSourceParameterName;
3889 QString mDestParameterName;
3890 QVariant mSourceCrs;
3913 bool optional =
false );
3918 static QString
typeName() {
return QStringLiteral(
"maptheme" ); }
3921 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3922 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3923 QString asScriptCode()
const override;
3925 QVariantMap toVariantMap()
const override;
3926 bool fromVariantMap(
const QVariantMap &map )
override;
3964 Type type = DateTime,
3965 const QVariant &defaultValue = QVariant(),
3966 bool optional =
false,
3967 const QDateTime &minValue = QDateTime(),
3968 const QDateTime &maxValue = QDateTime()
3974 static QString
typeName() {
return QStringLiteral(
"datetime" ); }
3977 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
3978 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
3979 QString toolTip()
const override;
3989 QDateTime minimum()
const;
4002 void setMinimum(
const QDateTime &minimum );
4011 QDateTime maximum()
const;
4024 void setMaximum(
const QDateTime &maximum );
4030 Type dataType()
const;
4036 void setDataType( Type type );
4038 QVariantMap toVariantMap()
const override;
4039 bool fromVariantMap(
const QVariantMap &map )
override;
4050 Type mDataType = DateTime;
4075 bool optional =
false );
4080 static QString
typeName() {
return QStringLiteral(
"providerconnection" ); }
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;
4109 QString mProviderId;
4135 QgsProcessingParameterDatabaseSchema(
const QString &name,
const QString &description,
const QString &connectionParameterName = QString(),
const QVariant &defaultValue = QVariant(),
4136 bool optional =
false );
4141 static QString
typeName() {
return QStringLiteral(
"databaseschema" ); }
4144 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4145 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4146 QString asScriptCode()
const override;
4148 QVariantMap toVariantMap()
const override;
4149 bool fromVariantMap(
const QVariantMap &map )
override;
4150 QStringList dependsOnOtherParameters()
const override;
4156 QString parentConnectionParameterName()
const;
4162 void setParentConnectionParameterName(
const QString &name );
4171 QString mParentConnectionParameterName;
4199 const QString &connectionParameterName = QString(),
4200 const QString &schemaParameterName = QString(),
4201 const QVariant &defaultValue = QVariant(),
4202 bool optional =
false,
4203 bool allowNewTableNames =
false );
4208 static QString
typeName() {
return QStringLiteral(
"databasetable" ); }
4211 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4212 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4213 QString asScriptCode()
const override;
4215 QVariantMap toVariantMap()
const override;
4216 bool fromVariantMap(
const QVariantMap &map )
override;
4217 QStringList dependsOnOtherParameters()
const override;
4223 QString parentConnectionParameterName()
const;
4229 void setParentConnectionParameterName(
const QString &name );
4235 QString parentSchemaParameterName()
const;
4241 void setParentSchemaParameterName(
const QString &name );
4254 bool allowNewTableNames()
const;
4262 void setAllowNewTableNames(
bool allowed );
4266 QString mParentConnectionParameterName;
4267 QString mParentSchemaParameterName;
4268 bool mAllowNewTableNames =
false;
4286 const QVariant &defaultValue = QVariant(),
bool optional =
false );
4291 static QString
typeName() {
return QStringLiteral(
"pointcloud" ); }
4294 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4295 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4296 QString createFileFilter()
const override;
4319 const QVariant &defaultValue = QVariant(),
bool optional =
false );
4324 static QString
typeName() {
return QStringLiteral(
"annotation" ); }
4327 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4328 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4354 const QVariant &defaultValue = QVariant(),
4355 bool optional =
false,
4356 bool createByDefault =
true );
4361 static QString
typeName() {
return QStringLiteral(
"pointCloudDestination" ); }
4364 bool checkValueIsAcceptable(
const QVariant &input,
QgsProcessingContext *context =
nullptr )
const override;
4365 QString valueAsPythonString(
const QVariant &value,
QgsProcessingContext &context )
const override;
4367 QString defaultFileExtension() const override;
4368 QString createFileFilter() const override;
4374 virtual QStringList supportedOutputPointCloudLayerExtensions() const;
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 destination parameter, for specifying the destination path for a point cloud laye...
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