18#ifndef QGSPROCESSINGPARAMETERTYPEIMPL_H
19#define QGSPROCESSINGPARAMETERTYPEIMPL_H
25#include <QCoreApplication>
30using namespace Qt::StringLiterals;
49 return QCoreApplication::translate(
"Processing",
"A raster layer parameter." );
52 QString
name()
const override
54 return QCoreApplication::translate(
"Processing",
"Raster Layer" );
59 return u
"from qgis.core import QgsProcessingParameterRasterLayer"_s;
64 return u
"QgsProcessingParameterRasterLayer"_s;
67 QString
id()
const override
74 return QStringList() << QObject::tr(
"str: layer ID" )
75 << QObject::tr(
"str: layer name" )
76 << QObject::tr(
"str: layer source" )
77 << u
"QgsProcessingRasterLayerDefinition"_s
79 << u
"QgsRasterLayer"_s;
84 return QStringList() << QObject::tr(
"Path to a raster layer" );
106 QColor
modelColor()
const override {
return QColor( 0, 180, 180 ); };
125 return QCoreApplication::translate(
"Processing",
"A mesh layer parameter." );
128 QString
name()
const override
130 return QCoreApplication::translate(
"Processing",
"Mesh Layer" );
135 return u
"from qgis.core import QgsProcessingParameterMeshLayer"_s;
140 return u
"QgsProcessingParameterMeshLayer"_s;
143 QString
id()
const override
150 return QStringList() << QObject::tr(
"str: layer ID" )
151 << QObject::tr(
"str: layer name" )
152 << QObject::tr(
"str: layer source" )
153 << u
"QgsMeshLayer"_s;
158 return QStringList() << QObject::tr(
"Path to a mesh layer" );
180 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
199 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." );
202 QString
name()
const override
204 return QCoreApplication::translate(
"Processing",
"Vector Layer" );
209 return u
"from qgis.core import QgsProcessingParameterVectorLayer"_s;
214 return u
"QgsProcessingParameterVectorLayer"_s;
217 QString
id()
const override
224 return QStringList() << QObject::tr(
"str: layer ID" )
225 << QObject::tr(
"str: layer name" )
226 << QObject::tr(
"str: layer source" )
228 << u
"QgsVectorLayer"_s;
233 return QStringList() << QObject::tr(
"Path to a vector layer" );
258 return param->dataTypes();
263 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
282 return QCoreApplication::translate(
"Processing",
"A generic map layer parameter, which accepts either vector or raster layers." );
285 QString
name()
const override
287 return QCoreApplication::translate(
"Processing",
"Map Layer" );
290 QString
id()
const override
297 return u
"from qgis.core import QgsProcessingParameterMapLayer"_s;
302 return u
"QgsProcessingParameterMapLayer"_s;
307 return QStringList() << QObject::tr(
"str: layer ID" )
308 << QObject::tr(
"str: layer name" )
309 << QObject::tr(
"str: layer source" )
312 << u
"QgsRasterLayer"_s
313 << u
"QgsVectorLayer"_s;
318 return QStringList() << QObject::tr(
"Path to a vector, raster or mesh layer" );
345 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
364 return QCoreApplication::translate(
"Processing",
"A boolean parameter, for true/false values." );
367 QString
name()
const override
369 return QCoreApplication::translate(
"Processing",
"Boolean" );
372 QString
id()
const override
379 return u
"from qgis.core import QgsProcessingParameterBoolean"_s;
384 return u
"QgsProcessingParameterBoolean"_s;
389 return QStringList() << u
"bool"_s
397 return QStringList() << QObject::tr(
"1 for true/yes" )
398 << QObject::tr(
"0 for false/no" )
399 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
400 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
438 QColor
modelColor()
const override {
return QColor( 51, 201, 28 ); };
457 return QCoreApplication::translate(
"Processing",
"An expression parameter, to add custom expressions based on layer fields." );
460 QString
name()
const override
462 return QCoreApplication::translate(
"Processing",
"Expression" );
465 QString
id()
const override
467 return u
"expression"_s;
472 return u
"from qgis.core import QgsProcessingParameterExpression"_s;
477 return u
"QgsProcessingParameterExpression"_s;
482 return QStringList() << u
"str"_s
488 return QStringList() << QObject::tr(
"A valid QGIS expression string, e.g \"road_name\" = 'MAIN RD'" );
512 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
531 return QCoreApplication::translate(
"Processing",
"A coordinate reference system (CRS) input parameter." );
534 QString
name()
const override
536 return QCoreApplication::translate(
"Processing",
"CRS" );
539 QString
id()
const override
546 return u
"from qgis.core import QgsProcessingParameterCrs"_s;
551 return u
"QgsProcessingParameterCrs"_s;
557 << u
"str: 'ProjectCrs'"_s
558 << QObject::tr(
"str: CRS auth ID (e.g. 'EPSG:3111')" )
559 << QObject::tr(
"str: CRS PROJ4 (e.g. 'PROJ4:…')" )
560 << QObject::tr(
"str: CRS WKT (e.g. 'WKT:…')" )
561 << QObject::tr(
"str: layer ID. CRS of layer is used." )
562 << QObject::tr(
"str: layer name. CRS of layer is used." )
563 << QObject::tr(
"str: layer source. CRS of layer is used." )
564 << QObject::tr(
"QgsCoordinateReferenceSystem" )
565 << QObject::tr(
"QgsMapLayer: CRS of layer is used" )
566 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: CRS of source is used" )
572 return QStringList() << QObject::tr(
"CRS as an auth ID (e.g. 'EPSG:3111')" )
573 << QObject::tr(
"CRS as a PROJ4 string (e.g. 'PROJ4:…')" )
574 << QObject::tr(
"CRS as a WKT string (e.g. 'WKT:…')" )
575 << QObject::tr(
"Path to a layer. The CRS of the layer is used." ) ;
601 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
620 return QCoreApplication::translate(
"Processing",
"A numeric range parameter for processing algorithms." );
623 QString
name()
const override
625 return QCoreApplication::translate(
"Processing",
"Range" );
628 QString
id()
const override
635 return u
"from qgis.core import QgsProcessingParameterRange"_s;
640 return u
"QgsProcessingParameterRange"_s;
645 return QStringList() << QObject::tr(
"list[float]: list of 2 float values" )
646 << QObject::tr(
"list[str]: list of strings representing floats" )
647 << QObject::tr(
"str: as two comma delimited floats, e.g. '1,10'" )
653 return QStringList() << QObject::tr(
"Two comma separated numeric values, e.g. '1,10'" );
669 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
688 return QCoreApplication::translate(
"Processing",
"A point geometry parameter." );
691 QString
name()
const override
693 return QCoreApplication::translate(
"Processing",
"Point" );
696 QString
id()
const override
703 return u
"from qgis.core import QgsProcessingParameterPoint"_s;
708 return u
"QgsProcessingParameterPoint"_s;
713 return QStringList() << QObject::tr(
"str: as an 'x,y' string, e.g. '1.5,10.1'" )
716 << u
"QgsReferencedPointXY"_s
717 << u
"QgsGeometry: centroid of geometry is used"_s;
722 return QStringList() << QObject::tr(
"Point coordinate as an 'x,y' string, e.g. '1.5,10.1'" );
739 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
758 return QCoreApplication::translate(
"Processing",
"A geometry parameter." );
761 QString
name()
const override
763 return QCoreApplication::translate(
"Processing",
"Geometry" );
766 QString
id()
const override
768 return u
"geometry"_s;
773 return u
"from qgis.core import QgsProcessingParameterGeometry"_s;
778 return u
"QgsProcessingParameterGeometry"_s;
783 return QStringList() << QObject::tr(
"str: as Well-Known Text string (WKT)" )
790 return QStringList() << QObject::tr(
"Well-Known Text string (WKT)" );
809 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
828 return QCoreApplication::translate(
"Processing",
"An enumerated type parameter." );
831 QString
name()
const override
833 return QCoreApplication::translate(
"Processing",
"Enum" );
836 QString
id()
const override
843 return u
"from qgis.core import QgsProcessingParameterEnum"_s;
848 return u
"QgsProcessingParameterEnum"_s;
853 return QStringList() << u
"int"_s
854 << QObject::tr(
"str: as string representation of int, e.g. '1'" )
860 return QStringList() << QObject::tr(
"Number of selected option, e.g. '1'" )
861 << QObject::tr(
"Comma separated list of options, e.g. '1,3'" );
880 QColor
modelColor()
const override {
return QColor( 152, 68, 201 ); };
899 return QCoreApplication::translate(
"Processing",
"A map extent parameter." );
902 QString
name()
const override
904 return QCoreApplication::translate(
"Processing",
"Extent" );
907 QString
id()
const override
914 return u
"from qgis.core import QgsProcessingParameterExtent"_s;
919 return u
"QgsProcessingParameterExtent"_s;
924 return QStringList() << QObject::tr(
"str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
925 << QObject::tr(
"str: layer ID. Extent of layer is used." )
926 << QObject::tr(
"str: layer name. Extent of layer is used." )
927 << QObject::tr(
"str: layer source. Extent of layer is used." )
928 << QObject::tr(
"QgsMapLayer: Extent of layer is used" )
929 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: Extent of source is used" )
932 << u
"QgsReferencedRectangle"_s
933 << u
"QgsGeometry: bounding box of geometry is used"_s;
938 return QStringList() << QObject::tr(
"A comma delimited string of x min, x max, y min, y max. E.g. '4,10,101,105'" )
939 << QObject::tr(
"Path to a layer. The extent of the layer is used." ) ;
966 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
985 return QCoreApplication::translate(
"Processing",
"A table (matrix) parameter for processing algorithms." );
988 QString
name()
const override
990 return QCoreApplication::translate(
"Processing",
"Matrix" );
993 QString
id()
const override
1000 return u
"from qgis.core import QgsProcessingParameterMatrix"_s;
1005 return u
"QgsProcessingParameterMatrix"_s;
1010 return QStringList() << QObject::tr(
"str: as comma delimited list of values" )
1012 << u
"QgsProperty"_s;
1017 return QStringList() << QObject::tr(
"A comma delimited list of values" );
1022 return QStringList()
1028 return QStringList();
1031 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1050 return QCoreApplication::translate(
"Processing",
"A file or folder parameter, for use with non-map layer file sources or folders." );
1053 QString
name()
const override
1055 return QCoreApplication::translate(
"Processing",
"File/Folder" );
1058 QString
id()
const override
1065 return u
"from qgis.core import QgsProcessingParameterFile"_s;
1070 return u
"QgsProcessingParameterFile"_s;
1075 return QStringList() << u
"str"_s
1076 << u
"QgsProperty"_s;
1081 return QStringList() << QObject::tr(
"Path to a file" );
1086 return QStringList()
1102 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1121 return QCoreApplication::translate(
"Processing",
"A vector field parameter, for selecting an existing field from a vector source." );
1124 QString
name()
const override
1126 return QCoreApplication::translate(
"Processing",
"Vector Field" );
1129 QString
id()
const override
1136 return u
"from qgis.core import QgsProcessingParameterField"_s;
1141 return u
"QgsProcessingParameterField"_s;
1146 return QStringList() << u
"str"_s
1147 << u
"QgsProperty"_s;
1152 return QStringList() << QObject::tr(
"The name of an existing field" )
1153 << QObject::tr(
"; delimited list of existing field names" );
1158 return QStringList()
1165 return QStringList()
1183 return QStringList()
1194 return QStringList()
1219 return QCoreApplication::translate(
"Processing",
"A vector layer destination parameter." );
1222 QString
name()
const override
1224 return QCoreApplication::translate(
"Processing",
"Vector Destination" );
1227 QString
id()
const override
1229 return u
"vectorDestination"_s;
1234 return u
"from qgis.core import QgsProcessingParameterVectorDestination"_s;
1239 return u
"QgsProcessingParameterVectorDestination"_s;
1251 return QStringList() << u
"str"_s
1253 << u
"QgsProcessingOutputLayerDefinition"_s;
1258 return QStringList() << QObject::tr(
"Path for new vector layer" );
1261 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
1281 return QCoreApplication::translate(
"Processing",
"A generic file based destination parameter." );
1284 QString
name()
const override
1286 return QCoreApplication::translate(
"Processing",
"File Destination" );
1289 QString
id()
const override
1291 return u
"fileDestination"_s;
1296 return u
"from qgis.core import QgsProcessingParameterFileDestination"_s;
1301 return u
"QgsProcessingParameterFileDestination"_s;
1313 return QStringList() << u
"str"_s
1314 << u
"QgsProperty"_s;
1319 return QStringList() << QObject::tr(
"Path for new file" );
1324 return QStringList()
1339 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1360 return QCoreApplication::translate(
"Processing",
"A folder destination parameter." );
1363 QString
name()
const override
1365 return QCoreApplication::translate(
"Processing",
"Folder Destination" );
1368 QString
id()
const override
1370 return u
"folderDestination"_s;
1375 return u
"from qgis.core import QgsProcessingParameterFolderDestination"_s;
1380 return u
"QgsProcessingParameterFolderDestination"_s;
1392 return QStringList() << u
"str"_s
1393 << u
"QgsProperty"_s;
1398 return QStringList() << QObject::tr(
"Path for an existing or new folder" );
1403 return QStringList()
1416 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1436 return QCoreApplication::translate(
"Processing",
"A raster layer destination parameter." );
1439 QString
name()
const override
1441 return QCoreApplication::translate(
"Processing",
"Raster Destination" );
1444 QString
id()
const override
1446 return u
"rasterDestination"_s;
1451 return u
"from qgis.core import QgsProcessingParameterRasterDestination"_s;
1456 return u
"QgsProcessingParameterRasterDestination"_s;
1468 return QStringList() << u
"str"_s
1470 << u
"QgsProcessingOutputLayerDefinition"_s;
1475 return QStringList() << QObject::tr(
"Path for new raster layer" );
1478 QColor
modelColor()
const override {
return QColor( 0, 180, 180 ); };
1497 return QCoreApplication::translate(
"Processing",
"A freeform string parameter." );
1500 QString
name()
const override
1502 return QCoreApplication::translate(
"Processing",
"String" );
1505 QString
id()
const override
1512 return u
"from qgis.core import QgsProcessingParameterString"_s;
1517 return u
"QgsProcessingParameterString"_s;
1522 return QStringList() << u
"str"_s
1523 << u
"QgsProperty"_s;
1528 return QStringList() << QObject::tr(
"String value" )
1529 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1530 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1535 return QStringList()
1560 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
1579 return QCoreApplication::translate(
"Processing",
"An authentication configuration parameter." );
1582 QString
name()
const override
1584 return QCoreApplication::translate(
"Processing",
"Authentication Configuration" );
1587 QString
id()
const override
1589 return u
"authcfg"_s;
1594 return u
"from qgis.core import QgsProcessingParameterAuthConfig"_s;
1599 return u
"QgsProcessingParameterAuthConfig"_s;
1604 return QStringList() << u
"str"_s;
1609 return QStringList() << QObject::tr(
"An existing QGIS authentication ID string" );
1614 return QStringList()
1643 return QCoreApplication::translate(
"Processing",
"An input allowing selection of multiple sources, including multiple map layers or file sources." );
1646 QString
name()
const override
1648 return QCoreApplication::translate(
"Processing",
"Multiple Input" );
1651 QString
id()
const override
1653 return u
"multilayer"_s;
1658 return u
"from qgis.core import QgsProcessingParameterMultipleLayers"_s;
1663 return u
"QgsProcessingParameterMultipleLayers"_s;
1668 return QStringList() << QObject::tr(
"list[str]: list of layer IDs" )
1669 << QObject::tr(
"list[str]: list of layer names" )
1670 << QObject::tr(
"list[str]: list of layer sources" )
1671 << u
"list[QgsMapLayer]"_s
1672 << u
"QgsProperty"_s;
1677 return QStringList()
1689 return QStringList()
1699 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
1718 return QCoreApplication::translate(
"Processing",
"A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
1721 QString
name()
const override
1723 return QCoreApplication::translate(
"Processing",
"Vector Features" );
1726 QString
id()
const override
1733 return u
"from qgis.core import QgsProcessingParameterFeatureSource"_s;
1738 return u
"QgsProcessingParameterFeatureSource"_s;
1743 return QStringList() << QObject::tr(
"str: layer ID" )
1744 << QObject::tr(
"str: layer name" )
1745 << QObject::tr(
"str: layer source" )
1746 << u
"QgsProcessingFeatureSourceDefinition"_s
1748 << u
"QgsVectorLayer"_s;
1753 return QStringList() << QObject::tr(
"Path to a vector layer" );
1758 return QStringList()
1768 return QStringList()
1779 return param->dataTypes();
1781 return QList<int>();
1784 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
1803 return QCoreApplication::translate(
"Processing",
"A numeric parameter, including float or integer values." );
1806 QString
name()
const override
1808 return QCoreApplication::translate(
"Processing",
"Number" );
1811 QString
id()
const override
1818 return u
"from qgis.core import QgsProcessingParameterNumber"_s;
1823 return u
"QgsProcessingParameterNumber"_s;
1828 return QStringList() << u
"int"_s
1830 << u
"QgsProperty"_s;
1835 return QStringList() << QObject::tr(
"A numeric value" )
1836 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1837 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1842 return QStringList()
1858 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1877 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a distance measure." );
1880 QString
name()
const override
1882 return QCoreApplication::translate(
"Processing",
"Distance" );
1885 QString
id()
const override
1887 return u
"distance"_s;
1892 return u
"from qgis.core import QgsProcessingParameterDistance"_s;
1897 return u
"QgsProcessingParameterDistance"_s;
1902 return QStringList() << u
"int"_s
1904 << u
"QgsProperty"_s;
1909 return QStringList() << QObject::tr(
"A numeric value" )
1910 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1911 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1914 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1934 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing an area measure." );
1937 QString
name()
const override
1939 return QCoreApplication::translate(
"Processing",
"Area" );
1942 QString
id()
const override
1949 return u
"from qgis.core import QgsProcessingParameterArea"_s;
1954 return u
"QgsProcessingParameterArea"_s;
1959 return QStringList() << u
"int"_s
1961 << u
"QgsProperty"_s;
1966 return QStringList() << QObject::tr(
"A numeric value" )
1967 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1968 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1989 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a volume measure." );
1992 QString
name()
const override
1994 return QCoreApplication::translate(
"Processing",
"Volume" );
1997 QString
id()
const override
2004 return u
"from qgis.core import QgsProcessingParameterVolume"_s;
2009 return u
"QgsProcessingParameterVolume"_s;
2014 return QStringList() << u
"int"_s
2016 << u
"QgsProperty"_s;
2021 return QStringList() << QObject::tr(
"A numeric value" )
2022 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2023 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2045 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a duration measure." );
2048 QString
name()
const override
2050 return QCoreApplication::translate(
"Processing",
"Duration" );
2053 QString
id()
const override
2055 return u
"duration"_s;
2060 return u
"from qgis.core import QgsProcessingParameterDuration"_s;
2065 return u
"QgsProcessingParameterDuration"_s;
2070 return QStringList() << u
"int"_s
2072 << u
"QgsProperty"_s;
2077 return QStringList() << QObject::tr(
"A numeric value (unit type set by algorithms)" )
2078 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2079 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2082 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2101 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a map scale." );
2104 QString
name()
const override
2106 return QCoreApplication::translate(
"Processing",
"Scale" );
2109 QString
id()
const override
2116 return u
"from qgis.core import QgsProcessingParameterScale"_s;
2121 return u
"QgsProcessingParameterScale"_s;
2126 return QStringList() << u
"int: scale denominator"_s
2127 << u
"float: scale denominator"_s
2128 << u
"QgsProperty"_s;
2133 return QStringList() << QObject::tr(
"A numeric value representing the scale denominator" );
2136 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2155 return QCoreApplication::translate(
"Processing",
"A raster band parameter, for selecting an existing band from a raster source." );
2158 QString
name()
const override
2160 return QCoreApplication::translate(
"Processing",
"Raster Band" );
2163 QString
id()
const override
2170 return u
"from qgis.core import QgsProcessingParameterBand"_s;
2175 return u
"QgsProcessingParameterBand"_s;
2180 return QStringList() << u
"int"_s
2181 << u
"QgsProperty"_s;
2186 return QStringList() << QObject::tr(
"Integer value representing an existing raster band number" );
2191 return QStringList()
2198 return QStringList()
2227 return QCoreApplication::translate(
"Processing",
"A feature sink destination parameter." );
2230 QString
name()
const override
2232 return QCoreApplication::translate(
"Processing",
"Feature Sink" );
2235 QString
id()
const override
2242 return u
"from qgis.core import QgsProcessingParameterFeatureSink"_s;
2247 return u
"QgsProcessingParameterFeatureSink"_s;
2252 return QStringList() << QObject::tr(
"str: destination vector file, e.g. 'd:/test.shp'" )
2253 << QObject::tr(
"str: 'memory:' to store result in temporary memory layer" )
2254 << QObject::tr(
"str: using vector provider ID prefix and destination URI, e.g. 'postgres:…' to store result in PostGIS table" )
2255 << u
"QgsProcessingOutputLayerDefinition"_s
2256 << u
"QgsProperty"_s;
2261 return QStringList() << QObject::tr(
"Path for new vector layer" );
2264 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
2283 return QCoreApplication::translate(
"Processing",
"A print layout parameter." );
2286 QString
name()
const override
2288 return QCoreApplication::translate(
"Processing",
"Print Layout" );
2291 QString
id()
const override
2298 return u
"from qgis.core import QgsProcessingParameterLayout"_s;
2303 return u
"QgsProcessingParameterLayout"_s;
2308 return QStringList() << QObject::tr(
"str: name of print layout in current project" )
2309 << u
"QgsProperty"_s;
2314 return QStringList() << QObject::tr(
"Name of print layout in current project" );
2319 return QStringList()
2326 return QStringList()
2348 return QCoreApplication::translate(
"Processing",
"A print layout item parameter." );
2351 QString
name()
const override
2353 return QCoreApplication::translate(
"Processing",
"Print Layout Item" );
2356 QString
id()
const override
2358 return u
"layoutitem"_s;
2363 return u
"from qgis.core import QgsProcessingParameterLayoutItem"_s;
2368 return u
"QgsProcessingParameterLayoutItem"_s;
2373 return QStringList() << QObject::tr(
"str: UUID of print layout item" )
2374 << QObject::tr(
"str: id of print layout item" )
2375 << u
"QgsProperty"_s;
2380 return QStringList() << QObject::tr(
"UUID or item id of layout item" );
2385 return QStringList()
2392 return QStringList()
2414 return QCoreApplication::translate(
"Processing",
"A color parameter." );
2417 QString
name()
const override
2419 return QCoreApplication::translate(
"Processing",
"Color" );
2422 QString
id()
const override
2429 return u
"from qgis.core import QgsProcessingParameterColor"_s;
2434 return u
"QgsProcessingParameterColor"_s;
2439 return QStringList() << QObject::tr(
"str: string representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2441 << u
"QgsProperty"_s;
2446 return QStringList() << QObject::tr(
"String representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2447 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2448 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2453 return QStringList()
2460 return QStringList()
2465 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2484 return QCoreApplication::translate(
"Processing",
"A coordinate operation parameter." );
2487 QString
name()
const override
2489 return QCoreApplication::translate(
"Processing",
"Coordinate Operation" );
2492 QString
id()
const override
2494 return u
"coordinateoperation"_s;
2499 return u
"from qgis.core import QgsProcessingParameterCoordinateOperation"_s;
2504 return u
"QgsProcessingParameterCoordinateOperation"_s;
2509 return QStringList() << QObject::tr(
"str: string representation of a Proj coordinate operation" );
2514 return QStringList() << QObject::tr(
"String representation of Proj coordinate operation" );
2519 return QStringList()
2526 return QStringList()
2548 return QCoreApplication::translate(
"Processing",
"A map theme parameter." );
2551 QString
name()
const override
2553 return QCoreApplication::translate(
"Processing",
"Map Theme" );
2556 QString
id()
const override
2558 return u
"maptheme"_s;
2563 return u
"from qgis.core import QgsProcessingParameterMapTheme"_s;
2568 return u
"QgsProcessingParameterMapTheme"_s;
2573 return QStringList() << QObject::tr(
"str: name of an existing map theme" )
2574 << u
"QgsProperty"_s;
2579 return QStringList() << QObject::tr(
"Name of an existing map theme" );
2584 return QStringList()
2591 return QStringList()
2613 return QCoreApplication::translate(
"Processing",
"A datetime parameter, including datetime, date or time values." );
2616 QString
name()
const override
2618 return QCoreApplication::translate(
"Processing",
"Datetime" );
2621 QString
id()
const override
2623 return u
"datetime"_s;
2628 return u
"from qgis.core import QgsProcessingParameterDateTime"_s;
2633 return u
"QgsProcessingParameterDateTime"_s;
2638 return QStringList() << u
"str"_s
2642 << u
"QgsProperty"_s;
2647 return QStringList() << QObject::tr(
"A datetime value in ISO format" )
2648 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2649 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2654 return QStringList()
2661 return QStringList()
2666 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
2685 return QCoreApplication::translate(
"Processing",
"A connection name parameter, for registered database connections." );
2688 QString
name()
const override
2690 return QCoreApplication::translate(
"Processing",
"Connection Name" );
2693 QString
id()
const override
2695 return u
"providerconnection"_s;
2700 return u
"from qgis.core import QgsProcessingParameterProviderConnection"_s;
2705 return u
"QgsProcessingParameterProviderConnection"_s;
2710 return QStringList() << u
"str"_s
2711 << u
"QgsProperty"_s;
2716 return QStringList() << QObject::tr(
"Name of registered database connection" );
2721 return QStringList()
2729 return QStringList()
2751 return QCoreApplication::translate(
"Processing",
"A database schema parameter." );
2754 QString
name()
const override
2756 return QCoreApplication::translate(
"Processing",
"Database Schema" );
2759 QString
id()
const override
2761 return u
"databaseschema"_s;
2766 return u
"from qgis.core import QgsProcessingParameterDatabaseSchema"_s;
2771 return u
"QgsProcessingParameterDatabaseSchema"_s;
2776 return QStringList() << u
"str"_s
2777 << u
"QgsProperty"_s;
2782 return QStringList() << QObject::tr(
"Name of existing database schema" );
2787 return QStringList()
2795 return QStringList()
2817 return QCoreApplication::translate(
"Processing",
"A database table parameter." );
2820 QString
name()
const override
2822 return QCoreApplication::translate(
"Processing",
"Database Table" );
2825 QString
id()
const override
2827 return u
"databasetable"_s;
2832 return u
"from qgis.core import QgsProcessingParameterDatabaseTable"_s;
2837 return u
"QgsProcessingParameterDatabaseTable"_s;
2842 return QStringList() << u
"str"_s
2843 << u
"QgsProperty"_s;
2848 return QStringList() << QObject::tr(
"Name of existing database table" );
2853 return QStringList()
2861 return QStringList()
2883 return QCoreApplication::translate(
"Processing",
"A point cloud layer parameter." );
2886 QString
name()
const override
2888 return QCoreApplication::translate(
"Processing",
"Point Cloud Layer" );
2893 return u
"from qgis.core import QgsProcessingParameterPointCloudLayer"_s;
2898 return u
"QgsProcessingParameterPointCloudLayer"_s;
2901 QString
id()
const override
2903 return u
"pointcloud"_s;
2908 return QStringList() << QObject::tr(
"str: layer ID" )
2909 << QObject::tr(
"str: layer name" )
2910 << QObject::tr(
"str: layer source" )
2911 << u
"QgsPointCloudLayer"_s;
2916 return QStringList() << QObject::tr(
"Path to a point cloud layer" );
2921 return QStringList()
2930 return QStringList()
2938 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
2957 return QCoreApplication::translate(
"Processing",
"An annotation layer parameter." );
2960 QString
name()
const override
2962 return QCoreApplication::translate(
"Processing",
"Annotation Layer" );
2967 return u
"from qgis.core import QgsProcessingParameterAnnotationLayer"_s;
2972 return u
"QgsProcessingParameterAnnotationLayer"_s;
2975 QString
id()
const override
2977 return u
"annotation"_s;
2982 return QStringList() << QObject::tr(
"str: layer ID" )
2983 << QObject::tr(
"str: layer name" )
2984 << QObject::tr(
"\"main\": main annotation layer for a project" )
2985 << u
"QgsAnnotationLayer"_s;
2990 return QStringList() << QObject::tr(
"Layer ID for an annotation layer, or \"main\" for the main annotation layer in a project." );
2995 return QStringList()
3004 return QStringList()
3010 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
3030 return QCoreApplication::translate(
"Processing",
"A point cloud layer destination parameter." );
3033 QString
name()
const override
3035 return QCoreApplication::translate(
"Processing",
"Point Cloud Destination" );
3038 QString
id()
const override
3040 return u
"pointCloudDestination"_s;
3045 return u
"from qgis.core import QgsProcessingParameterPointCloudDestination"_s;
3050 return u
"QgsProcessingParameterPointCloudDestination"_s;
3062 return QStringList() << u
"str"_s
3064 << u
"QgsProcessingOutputLayerDefinition"_s;
3069 return QStringList() << QObject::tr(
"Path for new point cloud layer" );
3072 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
3091 return QCoreApplication::translate(
"Processing",
"A point cloud attribute parameter, for selecting an attribute from a point cloud source." );
3094 QString
name()
const override
3096 return QCoreApplication::translate(
"Processing",
"Point Cloud Attribute" );
3099 QString
id()
const override
3101 return u
"attribute"_s;
3106 return u
"from qgis.core import QgsProcessingParameterPointCloudAttribute"_s;
3111 return u
"QgsProcessingParameterPointCloudAttribute"_s;
3116 return QStringList() << u
"str"_s
3117 << u
"QgsProperty"_s;
3122 return QStringList() << QObject::tr(
"The name of an attribute" )
3123 << QObject::tr(
"; delimited list of attribute names" );
3128 return QStringList()
3135 return QStringList()
3158 return QCoreApplication::translate(
"Processing",
"A vector tiles layer destination parameter." );
3161 QString
name()
const override
3163 return QCoreApplication::translate(
"Processing",
"Vector Tile Destination" );
3166 QString
id()
const override
3168 return u
"vectorTileDestination"_s;
3173 return u
"from qgis.core import QgsProcessingParameterVectorTileDestination"_s;
3178 return u
"QgsProcessingParameterVectorTileDestination"_s;
3190 return QStringList() << u
"str"_s
3192 << u
"QgsProcessingOutputLayerDefinition"_s;
3197 return QStringList() << QObject::tr(
"Path for new vector tile layer" );
3200 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.