18#ifndef QGSPROCESSINGPARAMETERTYPEIMPL_H
19#define QGSPROCESSINGPARAMETERTYPEIMPL_H
25#include <QCoreApplication>
28using namespace Qt::StringLiterals;
48 return QCoreApplication::translate(
"Processing",
"A raster layer parameter." );
51 QString
name()
const override
53 return QCoreApplication::translate(
"Processing",
"Raster Layer" );
58 return u
"from qgis.core import QgsProcessingParameterRasterLayer"_s;
63 return u
"QgsProcessingParameterRasterLayer"_s;
66 QString
id()
const override
73 return QStringList() << QObject::tr(
"str: layer ID" )
74 << QObject::tr(
"str: layer name" )
75 << QObject::tr(
"str: layer source" )
76 << u
"QgsProcessingRasterLayerDefinition"_s
78 << u
"QgsRasterLayer"_s;
83 return QStringList() << QObject::tr(
"Path to a raster layer" );
105 QColor
modelColor()
const override {
return QColor( 0, 180, 180 ); };
124 return QCoreApplication::translate(
"Processing",
"A mesh layer parameter." );
127 QString
name()
const override
129 return QCoreApplication::translate(
"Processing",
"Mesh Layer" );
134 return u
"from qgis.core import QgsProcessingParameterMeshLayer"_s;
139 return u
"QgsProcessingParameterMeshLayer"_s;
142 QString
id()
const override
149 return QStringList() << QObject::tr(
"str: layer ID" )
150 << QObject::tr(
"str: layer name" )
151 << QObject::tr(
"str: layer source" )
152 << u
"QgsMeshLayer"_s;
157 return QStringList() << QObject::tr(
"Path to a mesh layer" );
179 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
198 return QCoreApplication::translate(
"Processing",
"A vector layer parameter, e.g. for algorithms which change layer styles, edit layers in place, or other operations which affect an entire layer." );
201 QString
name()
const override
203 return QCoreApplication::translate(
"Processing",
"Vector Layer" );
208 return u
"from qgis.core import QgsProcessingParameterVectorLayer"_s;
213 return u
"QgsProcessingParameterVectorLayer"_s;
216 QString
id()
const override
223 return QStringList() << QObject::tr(
"str: layer ID" )
224 << QObject::tr(
"str: layer name" )
225 << QObject::tr(
"str: layer source" )
227 << u
"QgsVectorLayer"_s;
232 return QStringList() << QObject::tr(
"Path to a vector layer" );
257 return param->dataTypes();
262 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
281 return QCoreApplication::translate(
"Processing",
"A generic map layer parameter, which accepts either vector or raster layers." );
284 QString
name()
const override
286 return QCoreApplication::translate(
"Processing",
"Map Layer" );
289 QString
id()
const override
296 return u
"from qgis.core import QgsProcessingParameterMapLayer"_s;
301 return u
"QgsProcessingParameterMapLayer"_s;
306 return QStringList() << QObject::tr(
"str: layer ID" )
307 << QObject::tr(
"str: layer name" )
308 << QObject::tr(
"str: layer source" )
311 << u
"QgsRasterLayer"_s
312 << u
"QgsVectorLayer"_s;
317 return QStringList() << QObject::tr(
"Path to a vector, raster or mesh layer" );
344 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
363 return QCoreApplication::translate(
"Processing",
"A boolean parameter, for true/false values." );
366 QString
name()
const override
368 return QCoreApplication::translate(
"Processing",
"Boolean" );
371 QString
id()
const override
378 return u
"from qgis.core import QgsProcessingParameterBoolean"_s;
383 return u
"QgsProcessingParameterBoolean"_s;
388 return QStringList() << u
"bool"_s
396 return QStringList() << QObject::tr(
"1 for true/yes" )
397 << QObject::tr(
"0 for false/no" )
398 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
399 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
437 QColor
modelColor()
const override {
return QColor( 51, 201, 28 ); };
456 return QCoreApplication::translate(
"Processing",
"An expression parameter, to add custom expressions based on layer fields." );
459 QString
name()
const override
461 return QCoreApplication::translate(
"Processing",
"Expression" );
464 QString
id()
const override
466 return u
"expression"_s;
471 return u
"from qgis.core import QgsProcessingParameterExpression"_s;
476 return u
"QgsProcessingParameterExpression"_s;
481 return QStringList() << u
"str"_s
487 return QStringList() << QObject::tr(
"A valid QGIS expression string, e.g \"road_name\" = 'MAIN RD'" );
511 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
530 return QCoreApplication::translate(
"Processing",
"A coordinate reference system (CRS) input parameter." );
533 QString
name()
const override
535 return QCoreApplication::translate(
"Processing",
"CRS" );
538 QString
id()
const override
545 return u
"from qgis.core import QgsProcessingParameterCrs"_s;
550 return u
"QgsProcessingParameterCrs"_s;
556 << u
"str: 'ProjectCrs'"_s
557 << QObject::tr(
"str: CRS auth ID (e.g. 'EPSG:3111')" )
558 << QObject::tr(
"str: CRS PROJ4 (e.g. 'PROJ4:…')" )
559 << QObject::tr(
"str: CRS WKT (e.g. 'WKT:…')" )
560 << QObject::tr(
"str: layer ID. CRS of layer is used." )
561 << QObject::tr(
"str: layer name. CRS of layer is used." )
562 << QObject::tr(
"str: layer source. CRS of layer is used." )
563 << QObject::tr(
"QgsCoordinateReferenceSystem" )
564 << QObject::tr(
"QgsMapLayer: CRS of layer is used" )
565 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: CRS of source is used" )
571 return QStringList() << QObject::tr(
"CRS as an auth ID (e.g. 'EPSG:3111')" )
572 << QObject::tr(
"CRS as a PROJ4 string (e.g. 'PROJ4:…')" )
573 << QObject::tr(
"CRS as a WKT string (e.g. 'WKT:…')" )
574 << QObject::tr(
"Path to a layer. The CRS of the layer is used." ) ;
600 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
619 return QCoreApplication::translate(
"Processing",
"A numeric range parameter for processing algorithms." );
622 QString
name()
const override
624 return QCoreApplication::translate(
"Processing",
"Range" );
627 QString
id()
const override
634 return u
"from qgis.core import QgsProcessingParameterRange"_s;
639 return u
"QgsProcessingParameterRange"_s;
644 return QStringList() << QObject::tr(
"list[float]: list of 2 float values" )
645 << QObject::tr(
"list[str]: list of strings representing floats" )
646 << QObject::tr(
"str: as two comma delimited floats, e.g. '1,10'" )
652 return QStringList() << QObject::tr(
"Two comma separated numeric values, e.g. '1,10'" );
668 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
687 return QCoreApplication::translate(
"Processing",
"A point geometry parameter." );
690 QString
name()
const override
692 return QCoreApplication::translate(
"Processing",
"Point" );
695 QString
id()
const override
702 return u
"from qgis.core import QgsProcessingParameterPoint"_s;
707 return u
"QgsProcessingParameterPoint"_s;
712 return QStringList() << QObject::tr(
"str: as an 'x,y' string, e.g. '1.5,10.1'" )
715 << u
"QgsReferencedPointXY"_s
716 << u
"QgsGeometry: centroid of geometry is used"_s;
721 return QStringList() << QObject::tr(
"Point coordinate as an 'x,y' string, e.g. '1.5,10.1'" );
738 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
757 return QCoreApplication::translate(
"Processing",
"A geometry parameter." );
760 QString
name()
const override
762 return QCoreApplication::translate(
"Processing",
"Geometry" );
765 QString
id()
const override
767 return u
"geometry"_s;
772 return u
"from qgis.core import QgsProcessingParameterGeometry"_s;
777 return u
"QgsProcessingParameterGeometry"_s;
782 return QStringList() << QObject::tr(
"str: as Well-Known Text string (WKT)" )
789 return QStringList() << QObject::tr(
"Well-Known Text string (WKT)" );
808 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
827 return QCoreApplication::translate(
"Processing",
"An enumerated type parameter." );
830 QString
name()
const override
832 return QCoreApplication::translate(
"Processing",
"Enum" );
835 QString
id()
const override
842 return u
"from qgis.core import QgsProcessingParameterEnum"_s;
847 return u
"QgsProcessingParameterEnum"_s;
852 return QStringList() << u
"int"_s
853 << QObject::tr(
"str: as string representation of int, e.g. '1'" )
859 return QStringList() << QObject::tr(
"Number of selected option, e.g. '1'" )
860 << QObject::tr(
"Comma separated list of options, e.g. '1,3'" );
879 QColor
modelColor()
const override {
return QColor( 152, 68, 201 ); };
898 return QCoreApplication::translate(
"Processing",
"A map extent parameter." );
901 QString
name()
const override
903 return QCoreApplication::translate(
"Processing",
"Extent" );
906 QString
id()
const override
913 return u
"from qgis.core import QgsProcessingParameterExtent"_s;
918 return u
"QgsProcessingParameterExtent"_s;
923 return QStringList() << QObject::tr(
"str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
924 << QObject::tr(
"str: layer ID. Extent of layer is used." )
925 << QObject::tr(
"str: layer name. Extent of layer is used." )
926 << QObject::tr(
"str: layer source. Extent of layer is used." )
927 << QObject::tr(
"QgsMapLayer: Extent of layer is used" )
928 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: Extent of source is used" )
931 << u
"QgsReferencedRectangle"_s
932 << u
"QgsGeometry: bounding box of geometry is used"_s;
937 return QStringList() << QObject::tr(
"A comma delimited string of x min, x max, y min, y max. E.g. '4,10,101,105'" )
938 << QObject::tr(
"Path to a layer. The extent of the layer is used." ) ;
965 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
984 return QCoreApplication::translate(
"Processing",
"A table (matrix) parameter for processing algorithms." );
987 QString
name()
const override
989 return QCoreApplication::translate(
"Processing",
"Matrix" );
992 QString
id()
const override
999 return u
"from qgis.core import QgsProcessingParameterMatrix"_s;
1004 return u
"QgsProcessingParameterMatrix"_s;
1009 return QStringList() << QObject::tr(
"str: as comma delimited list of values" )
1011 << u
"QgsProperty"_s;
1016 return QStringList() << QObject::tr(
"A comma delimited list of values" );
1021 return QStringList()
1027 return QStringList();
1030 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1049 return QCoreApplication::translate(
"Processing",
"A file or folder parameter, for use with non-map layer file sources or folders." );
1052 QString
name()
const override
1054 return QCoreApplication::translate(
"Processing",
"File/Folder" );
1057 QString
id()
const override
1064 return u
"from qgis.core import QgsProcessingParameterFile"_s;
1069 return u
"QgsProcessingParameterFile"_s;
1074 return QStringList() << u
"str"_s
1075 << u
"QgsProperty"_s;
1080 return QStringList() << QObject::tr(
"Path to a file" );
1085 return QStringList()
1101 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1120 return QCoreApplication::translate(
"Processing",
"A vector field parameter, for selecting an existing field from a vector source." );
1123 QString
name()
const override
1125 return QCoreApplication::translate(
"Processing",
"Vector Field" );
1128 QString
id()
const override
1135 return u
"from qgis.core import QgsProcessingParameterField"_s;
1140 return u
"QgsProcessingParameterField"_s;
1145 return QStringList() << u
"str"_s
1146 << u
"QgsProperty"_s;
1151 return QStringList() << QObject::tr(
"The name of an existing field" )
1152 << QObject::tr(
"; delimited list of existing field names" );
1157 return QStringList()
1164 return QStringList()
1182 return QStringList()
1193 return QStringList()
1218 return QCoreApplication::translate(
"Processing",
"A vector layer destination parameter." );
1221 QString
name()
const override
1223 return QCoreApplication::translate(
"Processing",
"Vector Destination" );
1226 QString
id()
const override
1228 return u
"vectorDestination"_s;
1233 return u
"from qgis.core import QgsProcessingParameterVectorDestination"_s;
1238 return u
"QgsProcessingParameterVectorDestination"_s;
1250 return QStringList() << u
"str"_s
1252 << u
"QgsProcessingOutputLayerDefinition"_s;
1257 return QStringList() << QObject::tr(
"Path for new vector layer" );
1260 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
1280 return QCoreApplication::translate(
"Processing",
"A generic file based destination parameter." );
1283 QString
name()
const override
1285 return QCoreApplication::translate(
"Processing",
"File Destination" );
1288 QString
id()
const override
1290 return u
"fileDestination"_s;
1295 return u
"from qgis.core import QgsProcessingParameterFileDestination"_s;
1300 return u
"QgsProcessingParameterFileDestination"_s;
1312 return QStringList() << u
"str"_s
1313 << u
"QgsProperty"_s;
1318 return QStringList() << QObject::tr(
"Path for new file" );
1323 return QStringList()
1338 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1359 return QCoreApplication::translate(
"Processing",
"A folder destination parameter." );
1362 QString
name()
const override
1364 return QCoreApplication::translate(
"Processing",
"Folder Destination" );
1367 QString
id()
const override
1369 return u
"folderDestination"_s;
1374 return u
"from qgis.core import QgsProcessingParameterFolderDestination"_s;
1379 return u
"QgsProcessingParameterFolderDestination"_s;
1391 return QStringList() << u
"str"_s
1392 << u
"QgsProperty"_s;
1397 return QStringList() << QObject::tr(
"Path for an existing or new folder" );
1402 return QStringList()
1415 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1435 return QCoreApplication::translate(
"Processing",
"A raster layer destination parameter." );
1438 QString
name()
const override
1440 return QCoreApplication::translate(
"Processing",
"Raster Destination" );
1443 QString
id()
const override
1445 return u
"rasterDestination"_s;
1450 return u
"from qgis.core import QgsProcessingParameterRasterDestination"_s;
1455 return u
"QgsProcessingParameterRasterDestination"_s;
1467 return QStringList() << u
"str"_s
1469 << u
"QgsProcessingOutputLayerDefinition"_s;
1474 return QStringList() << QObject::tr(
"Path for new raster layer" );
1477 QColor
modelColor()
const override {
return QColor( 0, 180, 180 ); };
1496 return QCoreApplication::translate(
"Processing",
"A freeform string parameter." );
1499 QString
name()
const override
1501 return QCoreApplication::translate(
"Processing",
"String" );
1504 QString
id()
const override
1511 return u
"from qgis.core import QgsProcessingParameterString"_s;
1516 return u
"QgsProcessingParameterString"_s;
1521 return QStringList() << u
"str"_s
1522 << u
"QgsProperty"_s;
1527 return QStringList() << QObject::tr(
"String value" )
1528 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1529 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1534 return QStringList()
1559 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
1578 return QCoreApplication::translate(
"Processing",
"An authentication configuration parameter." );
1581 QString
name()
const override
1583 return QCoreApplication::translate(
"Processing",
"Authentication Configuration" );
1586 QString
id()
const override
1588 return u
"authcfg"_s;
1593 return u
"from qgis.core import QgsProcessingParameterAuthConfig"_s;
1598 return u
"QgsProcessingParameterAuthConfig"_s;
1603 return QStringList() << u
"str"_s;
1608 return QStringList() << QObject::tr(
"An existing QGIS authentication ID string" );
1613 return QStringList()
1642 return QCoreApplication::translate(
"Processing",
"An input allowing selection of multiple sources, including multiple map layers or file sources." );
1645 QString
name()
const override
1647 return QCoreApplication::translate(
"Processing",
"Multiple Input" );
1650 QString
id()
const override
1652 return u
"multilayer"_s;
1657 return u
"from qgis.core import QgsProcessingParameterMultipleLayers"_s;
1662 return u
"QgsProcessingParameterMultipleLayers"_s;
1667 return QStringList() << QObject::tr(
"list[str]: list of layer IDs" )
1668 << QObject::tr(
"list[str]: list of layer names" )
1669 << QObject::tr(
"list[str]: list of layer sources" )
1670 << u
"list[QgsMapLayer]"_s
1671 << u
"QgsProperty"_s;
1676 return QStringList()
1688 return QStringList()
1698 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
1717 return QCoreApplication::translate(
"Processing",
"A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
1720 QString
name()
const override
1722 return QCoreApplication::translate(
"Processing",
"Vector Features" );
1725 QString
id()
const override
1732 return u
"from qgis.core import QgsProcessingParameterFeatureSource"_s;
1737 return u
"QgsProcessingParameterFeatureSource"_s;
1742 return QStringList() << QObject::tr(
"str: layer ID" )
1743 << QObject::tr(
"str: layer name" )
1744 << QObject::tr(
"str: layer source" )
1745 << u
"QgsProcessingFeatureSourceDefinition"_s
1747 << u
"QgsVectorLayer"_s;
1752 return QStringList() << QObject::tr(
"Path to a vector layer" );
1757 return QStringList()
1767 return QStringList()
1778 return param->dataTypes();
1780 return QList<int>();
1783 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
1802 return QCoreApplication::translate(
"Processing",
"A numeric parameter, including float or integer values." );
1805 QString
name()
const override
1807 return QCoreApplication::translate(
"Processing",
"Number" );
1810 QString
id()
const override
1817 return u
"from qgis.core import QgsProcessingParameterNumber"_s;
1822 return u
"QgsProcessingParameterNumber"_s;
1827 return QStringList() << u
"int"_s
1829 << u
"QgsProperty"_s;
1834 return QStringList() << QObject::tr(
"A numeric value" )
1835 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1836 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1841 return QStringList()
1857 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1876 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a distance measure." );
1879 QString
name()
const override
1881 return QCoreApplication::translate(
"Processing",
"Distance" );
1884 QString
id()
const override
1886 return u
"distance"_s;
1891 return u
"from qgis.core import QgsProcessingParameterDistance"_s;
1896 return u
"QgsProcessingParameterDistance"_s;
1901 return QStringList() << u
"int"_s
1903 << u
"QgsProperty"_s;
1908 return QStringList() << QObject::tr(
"A numeric value" )
1909 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1910 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1913 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1933 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing an area measure." );
1936 QString
name()
const override
1938 return QCoreApplication::translate(
"Processing",
"Area" );
1941 QString
id()
const override
1948 return u
"from qgis.core import QgsProcessingParameterArea"_s;
1953 return u
"QgsProcessingParameterArea"_s;
1958 return QStringList() << u
"int"_s
1960 << u
"QgsProperty"_s;
1965 return QStringList() << QObject::tr(
"A numeric value" )
1966 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1967 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1988 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a volume measure." );
1991 QString
name()
const override
1993 return QCoreApplication::translate(
"Processing",
"Volume" );
1996 QString
id()
const override
2003 return u
"from qgis.core import QgsProcessingParameterVolume"_s;
2008 return u
"QgsProcessingParameterVolume"_s;
2013 return QStringList() << u
"int"_s
2015 << u
"QgsProperty"_s;
2020 return QStringList() << QObject::tr(
"A numeric value" )
2021 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2022 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2044 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a duration measure." );
2047 QString
name()
const override
2049 return QCoreApplication::translate(
"Processing",
"Duration" );
2052 QString
id()
const override
2054 return u
"duration"_s;
2059 return u
"from qgis.core import QgsProcessingParameterDuration"_s;
2064 return u
"QgsProcessingParameterDuration"_s;
2069 return QStringList() << u
"int"_s
2071 << u
"QgsProperty"_s;
2076 return QStringList() << QObject::tr(
"A numeric value (unit type set by algorithms)" )
2077 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2078 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2081 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2100 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a map scale." );
2103 QString
name()
const override
2105 return QCoreApplication::translate(
"Processing",
"Scale" );
2108 QString
id()
const override
2115 return u
"from qgis.core import QgsProcessingParameterScale"_s;
2120 return u
"QgsProcessingParameterScale"_s;
2125 return QStringList() << u
"int: scale denominator"_s
2126 << u
"float: scale denominator"_s
2127 << u
"QgsProperty"_s;
2132 return QStringList() << QObject::tr(
"A numeric value representing the scale denominator" );
2135 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2154 return QCoreApplication::translate(
"Processing",
"A raster band parameter, for selecting an existing band from a raster source." );
2157 QString
name()
const override
2159 return QCoreApplication::translate(
"Processing",
"Raster Band" );
2162 QString
id()
const override
2169 return u
"from qgis.core import QgsProcessingParameterBand"_s;
2174 return u
"QgsProcessingParameterBand"_s;
2179 return QStringList() << u
"int"_s
2180 << u
"QgsProperty"_s;
2185 return QStringList() << QObject::tr(
"Integer value representing an existing raster band number" );
2190 return QStringList()
2197 return QStringList()
2226 return QCoreApplication::translate(
"Processing",
"A feature sink destination parameter." );
2229 QString
name()
const override
2231 return QCoreApplication::translate(
"Processing",
"Feature Sink" );
2234 QString
id()
const override
2241 return u
"from qgis.core import QgsProcessingParameterFeatureSink"_s;
2246 return u
"QgsProcessingParameterFeatureSink"_s;
2251 return QStringList() << QObject::tr(
"str: destination vector file, e.g. 'd:/test.shp'" )
2252 << QObject::tr(
"str: 'memory:' to store result in temporary memory layer" )
2253 << QObject::tr(
"str: using vector provider ID prefix and destination URI, e.g. 'postgres:…' to store result in PostGIS table" )
2254 << u
"QgsProcessingOutputLayerDefinition"_s
2255 << u
"QgsProperty"_s;
2260 return QStringList() << QObject::tr(
"Path for new vector layer" );
2263 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
2282 return QCoreApplication::translate(
"Processing",
"A print layout parameter." );
2285 QString
name()
const override
2287 return QCoreApplication::translate(
"Processing",
"Print Layout" );
2290 QString
id()
const override
2297 return u
"from qgis.core import QgsProcessingParameterLayout"_s;
2302 return u
"QgsProcessingParameterLayout"_s;
2307 return QStringList() << QObject::tr(
"str: name of print layout in current project" )
2308 << u
"QgsProperty"_s;
2313 return QStringList() << QObject::tr(
"Name of print layout in current project" );
2318 return QStringList()
2325 return QStringList()
2347 return QCoreApplication::translate(
"Processing",
"A print layout item parameter." );
2350 QString
name()
const override
2352 return QCoreApplication::translate(
"Processing",
"Print Layout Item" );
2355 QString
id()
const override
2357 return u
"layoutitem"_s;
2362 return u
"from qgis.core import QgsProcessingParameterLayoutItem"_s;
2367 return u
"QgsProcessingParameterLayoutItem"_s;
2372 return QStringList() << QObject::tr(
"str: UUID of print layout item" )
2373 << QObject::tr(
"str: id of print layout item" )
2374 << u
"QgsProperty"_s;
2379 return QStringList() << QObject::tr(
"UUID or item id of layout item" );
2384 return QStringList()
2391 return QStringList()
2413 return QCoreApplication::translate(
"Processing",
"A color parameter." );
2416 QString
name()
const override
2418 return QCoreApplication::translate(
"Processing",
"Color" );
2421 QString
id()
const override
2428 return u
"from qgis.core import QgsProcessingParameterColor"_s;
2433 return u
"QgsProcessingParameterColor"_s;
2438 return QStringList() << QObject::tr(
"str: string representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2440 << u
"QgsProperty"_s;
2445 return QStringList() << QObject::tr(
"String representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2446 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2447 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2452 return QStringList()
2459 return QStringList()
2464 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2483 return QCoreApplication::translate(
"Processing",
"A coordinate operation parameter." );
2486 QString
name()
const override
2488 return QCoreApplication::translate(
"Processing",
"Coordinate Operation" );
2491 QString
id()
const override
2493 return u
"coordinateoperation"_s;
2498 return u
"from qgis.core import QgsProcessingParameterCoordinateOperation"_s;
2503 return u
"QgsProcessingParameterCoordinateOperation"_s;
2508 return QStringList() << QObject::tr(
"str: string representation of a Proj coordinate operation" );
2513 return QStringList() << QObject::tr(
"String representation of Proj coordinate operation" );
2518 return QStringList()
2525 return QStringList()
2547 return QCoreApplication::translate(
"Processing",
"A map theme parameter." );
2550 QString
name()
const override
2552 return QCoreApplication::translate(
"Processing",
"Map Theme" );
2555 QString
id()
const override
2557 return u
"maptheme"_s;
2562 return u
"from qgis.core import QgsProcessingParameterMapTheme"_s;
2567 return u
"QgsProcessingParameterMapTheme"_s;
2572 return QStringList() << QObject::tr(
"str: name of an existing map theme" )
2573 << u
"QgsProperty"_s;
2578 return QStringList() << QObject::tr(
"Name of an existing map theme" );
2583 return QStringList()
2590 return QStringList()
2612 return QCoreApplication::translate(
"Processing",
"A datetime parameter, including datetime, date or time values." );
2615 QString
name()
const override
2617 return QCoreApplication::translate(
"Processing",
"Datetime" );
2620 QString
id()
const override
2622 return u
"datetime"_s;
2627 return u
"from qgis.core import QgsProcessingParameterDateTime"_s;
2632 return u
"QgsProcessingParameterDateTime"_s;
2637 return QStringList() << u
"str"_s
2641 << u
"QgsProperty"_s;
2646 return QStringList() << QObject::tr(
"A datetime value in ISO format" )
2647 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2648 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2653 return QStringList()
2660 return QStringList()
2665 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
2684 return QCoreApplication::translate(
"Processing",
"A connection name parameter, for registered database connections." );
2687 QString
name()
const override
2689 return QCoreApplication::translate(
"Processing",
"Connection Name" );
2692 QString
id()
const override
2694 return u
"providerconnection"_s;
2699 return u
"from qgis.core import QgsProcessingParameterProviderConnection"_s;
2704 return u
"QgsProcessingParameterProviderConnection"_s;
2709 return QStringList() << u
"str"_s
2710 << u
"QgsProperty"_s;
2715 return QStringList() << QObject::tr(
"Name of registered database connection" );
2720 return QStringList()
2728 return QStringList()
2750 return QCoreApplication::translate(
"Processing",
"A database schema parameter." );
2753 QString
name()
const override
2755 return QCoreApplication::translate(
"Processing",
"Database Schema" );
2758 QString
id()
const override
2760 return u
"databaseschema"_s;
2765 return u
"from qgis.core import QgsProcessingParameterDatabaseSchema"_s;
2770 return u
"QgsProcessingParameterDatabaseSchema"_s;
2775 return QStringList() << u
"str"_s
2776 << u
"QgsProperty"_s;
2781 return QStringList() << QObject::tr(
"Name of existing database schema" );
2786 return QStringList()
2794 return QStringList()
2816 return QCoreApplication::translate(
"Processing",
"A database table parameter." );
2819 QString
name()
const override
2821 return QCoreApplication::translate(
"Processing",
"Database Table" );
2824 QString
id()
const override
2826 return u
"databasetable"_s;
2831 return u
"from qgis.core import QgsProcessingParameterDatabaseTable"_s;
2836 return u
"QgsProcessingParameterDatabaseTable"_s;
2841 return QStringList() << u
"str"_s
2842 << u
"QgsProperty"_s;
2847 return QStringList() << QObject::tr(
"Name of existing database table" );
2852 return QStringList()
2860 return QStringList()
2882 return QCoreApplication::translate(
"Processing",
"A point cloud layer parameter." );
2885 QString
name()
const override
2887 return QCoreApplication::translate(
"Processing",
"Point Cloud Layer" );
2892 return u
"from qgis.core import QgsProcessingParameterPointCloudLayer"_s;
2897 return u
"QgsProcessingParameterPointCloudLayer"_s;
2900 QString
id()
const override
2902 return u
"pointcloud"_s;
2907 return QStringList() << QObject::tr(
"str: layer ID" )
2908 << QObject::tr(
"str: layer name" )
2909 << QObject::tr(
"str: layer source" )
2910 << u
"QgsPointCloudLayer"_s;
2915 return QStringList() << QObject::tr(
"Path to a point cloud layer" );
2920 return QStringList()
2929 return QStringList()
2937 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
2956 return QCoreApplication::translate(
"Processing",
"An annotation layer parameter." );
2959 QString
name()
const override
2961 return QCoreApplication::translate(
"Processing",
"Annotation Layer" );
2966 return u
"from qgis.core import QgsProcessingParameterAnnotationLayer"_s;
2971 return u
"QgsProcessingParameterAnnotationLayer"_s;
2974 QString
id()
const override
2976 return u
"annotation"_s;
2981 return QStringList() << QObject::tr(
"str: layer ID" )
2982 << QObject::tr(
"str: layer name" )
2983 << QObject::tr(
"\"main\": main annotation layer for a project" )
2984 << u
"QgsAnnotationLayer"_s;
2989 return QStringList() << QObject::tr(
"Layer ID for an annotation layer, or \"main\" for the main annotation layer in a project." );
2994 return QStringList()
3003 return QStringList()
3009 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
3029 return QCoreApplication::translate(
"Processing",
"A point cloud layer destination parameter." );
3032 QString
name()
const override
3034 return QCoreApplication::translate(
"Processing",
"Point Cloud Destination" );
3037 QString
id()
const override
3039 return u
"pointCloudDestination"_s;
3044 return u
"from qgis.core import QgsProcessingParameterPointCloudDestination"_s;
3049 return u
"QgsProcessingParameterPointCloudDestination"_s;
3061 return QStringList() << u
"str"_s
3063 << u
"QgsProcessingOutputLayerDefinition"_s;
3068 return QStringList() << QObject::tr(
"Path for new point cloud layer" );
3071 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
3090 return QCoreApplication::translate(
"Processing",
"A point cloud attribute parameter, for selecting an attribute from a point cloud source." );
3093 QString
name()
const override
3095 return QCoreApplication::translate(
"Processing",
"Point Cloud Attribute" );
3098 QString
id()
const override
3100 return u
"attribute"_s;
3105 return u
"from qgis.core import QgsProcessingParameterPointCloudAttribute"_s;
3110 return u
"QgsProcessingParameterPointCloudAttribute"_s;
3115 return QStringList() << u
"str"_s
3116 << u
"QgsProperty"_s;
3121 return QStringList() << QObject::tr(
"The name of an attribute" )
3122 << QObject::tr(
"; delimited list of attribute names" );
3127 return QStringList()
3134 return QStringList()
3157 return QCoreApplication::translate(
"Processing",
"A vector tiles layer destination parameter." );
3160 QString
name()
const override
3162 return QCoreApplication::translate(
"Processing",
"Vector Tile Destination" );
3165 QString
id()
const override
3167 return u
"vectorTileDestination"_s;
3172 return u
"from qgis.core import QgsProcessingParameterVectorTileDestination"_s;
3177 return u
"QgsProcessingParameterVectorTileDestination"_s;
3189 return QStringList() << u
"str"_s
3191 << u
"QgsProcessingOutputLayerDefinition"_s;
3196 return QStringList() << QObject::tr(
"Path for new vector tile layer" );
3199 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
@ ExposeToModeler
Is this parameter available in the modeler. Is set to on by default.
QFlags< ProcessingParameterTypeFlag > ProcessingParameterTypeFlags
Flags which dictate the behavior of Processing parameter types.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
An annotation layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A double numeric parameter for area values.
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.
static QString typeName()
Returns the type name for the parameter class.
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.
static QString typeName()
Returns the type name for the parameter class.
A datetime (or pure date or time) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
Base class for the definition of processing parameters.
A double numeric parameter for distance values.
static QString typeName()
Returns the type name for the parameter class.
A double numeric parameter for duration values.
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.
An input feature source (such as vector layers) parameter for processing algorithms.
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.
A generic file based destination parameter, for specifying the destination path for a file (non-map l...
An input file or folder parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A folder destination parameter, for specifying the destination path for a folder created by the algor...
A geometry parameter for processing algorithms.
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.
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 ...
A table (matrix) parameter for processing algorithms.
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.
static QString typeName()
Returns the type name for the parameter class.
A point cloud layer attribute parameter for Processing algorithms.
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...
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.
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 ...
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.
An annotation layer parameter for processing algorithms.
An area parameter for processing algorithms.
An authentication configuration parameter for processing algorithms.
A raster band parameter for Processing algorithms.
A boolean parameter for processing algorithms.
A color parameter for Processing algorithms.
A coordinate operation parameter for Processing algorithms.
A crs parameter for processing algorithms.
A database schema name parameter for processing algorithms.
A database table name parameter for processing algorithms.
A datetime parameter for processing algorithms.
A common generic type for destination parameter, for specifying the destination path for a vector lay...
A distance parameter for processing algorithms.
A duration parameter for processing algorithms.
An enum based parameter for processing algorithms, allowing for selection from predefined values.
An expression parameter for processing algorithms.
A rectangular map extent parameter for processing algorithms.
A feature sink parameter for Processing algorithms.
An input feature source (such as vector layers) parameter for processing algorithms.
A vector layer or feature source field parameter for processing algorithms.
A generic file based destination parameter, for specifying the destination path for a file (non-map l...
An input file or folder parameter for processing algorithms.
A folder destination parameter, for specifying the destination path for a folder created by the algor...
A geometry parameter for processing algorithms.
A print layout item parameter for Processing algorithms.
A print layout parameter for Processing algorithms.
A generic map layer parameter for processing algorithms.
A map theme parameter for Processing algorithms.
A table (matrix) parameter for processing algorithms.
A mesh layer parameter for processing algorithms.
A parameter for processing algorithms which accepts multiple map layers.
A numeric parameter for processing algorithms.
A point cloud layer attribute parameter for Processing algorithms.
A pointcloud layer destination parameter, for specifying the destination path for a point cloud layer...
A point cloud layer parameter for processing algorithms.
A point parameter for processing algorithms.
A provider connection name parameter for processing algorithms.
A numeric range parameter for processing algorithms.
A raster layer destination parameter, for specifying the destination path for a raster layer created ...
A raster layer parameter for processing algorithms.
A scale parameter for processing algorithms.
A string parameter for processing algorithms.
A vector layer destination parameter, for specifying the destination path for a vector layer created ...
A vector layer parameter for processing algorithms.
A vector tile layer destination parameter, for specifying the destination path for a vector tile laye...
A volume parameter for processing algorithms.
Makes metadata of processing parameters available.
virtual QString name() const =0
A human readable and translatable short name for this parameter type.
virtual QStringList acceptedPythonTypes() const
Returns a list of the Python data types accepted as values for the parameter.
virtual QgsProcessingParameterDefinition * create(const QString &name) const =0
Creates a new parameter of this type.
virtual QString description() const =0
A human readable and translatable description for this parameter type.
virtual QStringList acceptedOutputTypes() const =0
Returns a list of compatible Processing output types for inputs for this parameter type.
virtual QColor modelColor() const
Returns the color to use for the parameter in model designer windows.
virtual QString id() const =0
A static id for this type which will be used for storing this parameter type.
virtual QString className() const
Returns the corresponding class name for the parameter type.
virtual QList< int > acceptedDataTypes(const QgsProcessingParameterDefinition *parameter) const
Returns a list of compatible Processing data types for inputs for this parameter type for the specifi...
virtual QStringList acceptedParameterTypes() const =0
Returns a list of compatible Processing parameter types for inputs for this parameter type.
virtual Qgis::ProcessingParameterTypeFlags flags() const
Determines if this parameter is available in the modeler.
virtual QStringList acceptedStringValues() const
Returns a descriptive list of the possible string values acceptable for the parameter.
virtual QString pythonImportString() const
Returns a valid Python import string for importing the corresponding parameter type,...
A vector layer destination parameter, for specifying the destination path for a vector layer created ...
A vector layer (with or without geometry) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A vector tile layer destination parameter, for specifying the destination path for a vector tile laye...
A double numeric parameter for volume values.
static QString typeName()
Returns the type name for the parameter class.