18#ifndef QGSPROCESSINGPARAMETERTYPEIMPL_H
19#define QGSPROCESSINGPARAMETERTYPEIMPL_H
25#include <QCoreApplication>
45 return QCoreApplication::translate(
"Processing",
"A raster layer parameter." );
48 QString
name()
const override
50 return QCoreApplication::translate(
"Processing",
"Raster Layer" );
55 return u
"from qgis.core import QgsProcessingParameterRasterLayer"_s;
60 return u
"QgsProcessingParameterRasterLayer"_s;
63 QString
id()
const override
70 return QStringList() << QObject::tr(
"str: layer ID" )
71 << QObject::tr(
"str: layer name" )
72 << QObject::tr(
"str: layer source" )
73 << u
"QgsProcessingRasterLayerDefinition"_s
75 << u
"QgsRasterLayer"_s;
80 return QStringList() << QObject::tr(
"Path to a raster layer" );
102 QColor
modelColor()
const override {
return QColor( 0, 180, 180 ); };
121 return QCoreApplication::translate(
"Processing",
"A mesh layer parameter." );
124 QString
name()
const override
126 return QCoreApplication::translate(
"Processing",
"Mesh Layer" );
131 return u
"from qgis.core import QgsProcessingParameterMeshLayer"_s;
136 return u
"QgsProcessingParameterMeshLayer"_s;
139 QString
id()
const override
146 return QStringList() << QObject::tr(
"str: layer ID" )
147 << QObject::tr(
"str: layer name" )
148 << QObject::tr(
"str: layer source" )
149 << u
"QgsMeshLayer"_s;
154 return QStringList() << QObject::tr(
"Path to a mesh layer" );
176 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
195 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." );
198 QString
name()
const override
200 return QCoreApplication::translate(
"Processing",
"Vector Layer" );
205 return u
"from qgis.core import QgsProcessingParameterVectorLayer"_s;
210 return u
"QgsProcessingParameterVectorLayer"_s;
213 QString
id()
const override
220 return QStringList() << QObject::tr(
"str: layer ID" )
221 << QObject::tr(
"str: layer name" )
222 << QObject::tr(
"str: layer source" )
224 << u
"QgsVectorLayer"_s;
229 return QStringList() << QObject::tr(
"Path to a vector layer" );
254 return param->dataTypes();
259 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
278 return QCoreApplication::translate(
"Processing",
"A generic map layer parameter, which accepts either vector or raster layers." );
281 QString
name()
const override
283 return QCoreApplication::translate(
"Processing",
"Map Layer" );
286 QString
id()
const override
293 return u
"from qgis.core import QgsProcessingParameterMapLayer"_s;
298 return u
"QgsProcessingParameterMapLayer"_s;
303 return QStringList() << QObject::tr(
"str: layer ID" )
304 << QObject::tr(
"str: layer name" )
305 << QObject::tr(
"str: layer source" )
308 << u
"QgsRasterLayer"_s
309 << u
"QgsVectorLayer"_s;
314 return QStringList() << QObject::tr(
"Path to a vector, raster or mesh layer" );
341 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
360 return QCoreApplication::translate(
"Processing",
"A boolean parameter, for true/false values." );
363 QString
name()
const override
365 return QCoreApplication::translate(
"Processing",
"Boolean" );
368 QString
id()
const override
375 return u
"from qgis.core import QgsProcessingParameterBoolean"_s;
380 return u
"QgsProcessingParameterBoolean"_s;
385 return QStringList() << u
"bool"_s
393 return QStringList() << QObject::tr(
"1 for true/yes" )
394 << QObject::tr(
"0 for false/no" )
395 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
396 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
434 QColor
modelColor()
const override {
return QColor( 51, 201, 28 ); };
453 return QCoreApplication::translate(
"Processing",
"An expression parameter, to add custom expressions based on layer fields." );
456 QString
name()
const override
458 return QCoreApplication::translate(
"Processing",
"Expression" );
461 QString
id()
const override
463 return u
"expression"_s;
468 return u
"from qgis.core import QgsProcessingParameterExpression"_s;
473 return u
"QgsProcessingParameterExpression"_s;
478 return QStringList() << u
"str"_s
484 return QStringList() << QObject::tr(
"A valid QGIS expression string, e.g \"road_name\" = 'MAIN RD'" );
508 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
527 return QCoreApplication::translate(
"Processing",
"A coordinate reference system (CRS) input parameter." );
530 QString
name()
const override
532 return QCoreApplication::translate(
"Processing",
"CRS" );
535 QString
id()
const override
542 return u
"from qgis.core import QgsProcessingParameterCrs"_s;
547 return u
"QgsProcessingParameterCrs"_s;
553 << u
"str: 'ProjectCrs'"_s
554 << QObject::tr(
"str: CRS auth ID (e.g. 'EPSG:3111')" )
555 << QObject::tr(
"str: CRS PROJ4 (e.g. 'PROJ4:…')" )
556 << QObject::tr(
"str: CRS WKT (e.g. 'WKT:…')" )
557 << QObject::tr(
"str: layer ID. CRS of layer is used." )
558 << QObject::tr(
"str: layer name. CRS of layer is used." )
559 << QObject::tr(
"str: layer source. CRS of layer is used." )
560 << QObject::tr(
"QgsCoordinateReferenceSystem" )
561 << QObject::tr(
"QgsMapLayer: CRS of layer is used" )
562 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: CRS of source is used" )
568 return QStringList() << QObject::tr(
"CRS as an auth ID (e.g. 'EPSG:3111')" )
569 << QObject::tr(
"CRS as a PROJ4 string (e.g. 'PROJ4:…')" )
570 << QObject::tr(
"CRS as a WKT string (e.g. 'WKT:…')" )
571 << QObject::tr(
"Path to a layer. The CRS of the layer is used." ) ;
597 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
616 return QCoreApplication::translate(
"Processing",
"A numeric range parameter for processing algorithms." );
619 QString
name()
const override
621 return QCoreApplication::translate(
"Processing",
"Range" );
624 QString
id()
const override
631 return u
"from qgis.core import QgsProcessingParameterRange"_s;
636 return u
"QgsProcessingParameterRange"_s;
641 return QStringList() << QObject::tr(
"list[float]: list of 2 float values" )
642 << QObject::tr(
"list[str]: list of strings representing floats" )
643 << QObject::tr(
"str: as two comma delimited floats, e.g. '1,10'" )
649 return QStringList() << QObject::tr(
"Two comma separated numeric values, e.g. '1,10'" );
665 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
684 return QCoreApplication::translate(
"Processing",
"A point geometry parameter." );
687 QString
name()
const override
689 return QCoreApplication::translate(
"Processing",
"Point" );
692 QString
id()
const override
699 return u
"from qgis.core import QgsProcessingParameterPoint"_s;
704 return u
"QgsProcessingParameterPoint"_s;
709 return QStringList() << QObject::tr(
"str: as an 'x,y' string, e.g. '1.5,10.1'" )
712 << u
"QgsReferencedPointXY"_s
713 << u
"QgsGeometry: centroid of geometry is used"_s;
718 return QStringList() << QObject::tr(
"Point coordinate as an 'x,y' string, e.g. '1.5,10.1'" );
735 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
754 return QCoreApplication::translate(
"Processing",
"A geometry parameter." );
757 QString
name()
const override
759 return QCoreApplication::translate(
"Processing",
"Geometry" );
762 QString
id()
const override
764 return u
"geometry"_s;
769 return u
"from qgis.core import QgsProcessingParameterGeometry"_s;
774 return u
"QgsProcessingParameterGeometry"_s;
779 return QStringList() << QObject::tr(
"str: as Well-Known Text string (WKT)" )
786 return QStringList() << QObject::tr(
"Well-Known Text string (WKT)" );
805 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
824 return QCoreApplication::translate(
"Processing",
"An enumerated type parameter." );
827 QString
name()
const override
829 return QCoreApplication::translate(
"Processing",
"Enum" );
832 QString
id()
const override
839 return u
"from qgis.core import QgsProcessingParameterEnum"_s;
844 return u
"QgsProcessingParameterEnum"_s;
849 return QStringList() << u
"int"_s
850 << QObject::tr(
"str: as string representation of int, e.g. '1'" )
856 return QStringList() << QObject::tr(
"Number of selected option, e.g. '1'" )
857 << QObject::tr(
"Comma separated list of options, e.g. '1,3'" );
876 QColor
modelColor()
const override {
return QColor( 152, 68, 201 ); };
895 return QCoreApplication::translate(
"Processing",
"A map extent parameter." );
898 QString
name()
const override
900 return QCoreApplication::translate(
"Processing",
"Extent" );
903 QString
id()
const override
910 return u
"from qgis.core import QgsProcessingParameterExtent"_s;
915 return u
"QgsProcessingParameterExtent"_s;
920 return QStringList() << QObject::tr(
"str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
921 << QObject::tr(
"str: layer ID. Extent of layer is used." )
922 << QObject::tr(
"str: layer name. Extent of layer is used." )
923 << QObject::tr(
"str: layer source. Extent of layer is used." )
924 << QObject::tr(
"QgsMapLayer: Extent of layer is used" )
925 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: Extent of source is used" )
928 << u
"QgsReferencedRectangle"_s
929 << u
"QgsGeometry: bounding box of geometry is used"_s;
934 return QStringList() << QObject::tr(
"A comma delimited string of x min, x max, y min, y max. E.g. '4,10,101,105'" )
935 << QObject::tr(
"Path to a layer. The extent of the layer is used." ) ;
962 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
981 return QCoreApplication::translate(
"Processing",
"A table (matrix) parameter for processing algorithms." );
984 QString
name()
const override
986 return QCoreApplication::translate(
"Processing",
"Matrix" );
989 QString
id()
const override
996 return u
"from qgis.core import QgsProcessingParameterMatrix"_s;
1001 return u
"QgsProcessingParameterMatrix"_s;
1006 return QStringList() << QObject::tr(
"str: as comma delimited list of values" )
1008 << u
"QgsProperty"_s;
1013 return QStringList() << QObject::tr(
"A comma delimited list of values" );
1018 return QStringList()
1024 return QStringList();
1027 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1046 return QCoreApplication::translate(
"Processing",
"A file or folder parameter, for use with non-map layer file sources or folders." );
1049 QString
name()
const override
1051 return QCoreApplication::translate(
"Processing",
"File/Folder" );
1054 QString
id()
const override
1061 return u
"from qgis.core import QgsProcessingParameterFile"_s;
1066 return u
"QgsProcessingParameterFile"_s;
1071 return QStringList() << u
"str"_s
1072 << u
"QgsProperty"_s;
1077 return QStringList() << QObject::tr(
"Path to a file" );
1082 return QStringList()
1098 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1117 return QCoreApplication::translate(
"Processing",
"A vector field parameter, for selecting an existing field from a vector source." );
1120 QString
name()
const override
1122 return QCoreApplication::translate(
"Processing",
"Vector Field" );
1125 QString
id()
const override
1132 return u
"from qgis.core import QgsProcessingParameterField"_s;
1137 return u
"QgsProcessingParameterField"_s;
1142 return QStringList() << u
"str"_s
1143 << u
"QgsProperty"_s;
1148 return QStringList() << QObject::tr(
"The name of an existing field" )
1149 << QObject::tr(
"; delimited list of existing field names" );
1154 return QStringList()
1161 return QStringList()
1179 return QStringList()
1190 return QStringList()
1215 return QCoreApplication::translate(
"Processing",
"A vector layer destination parameter." );
1218 QString
name()
const override
1220 return QCoreApplication::translate(
"Processing",
"Vector Destination" );
1223 QString
id()
const override
1225 return u
"vectorDestination"_s;
1230 return u
"from qgis.core import QgsProcessingParameterVectorDestination"_s;
1235 return u
"QgsProcessingParameterVectorDestination"_s;
1247 return QStringList() << u
"str"_s
1249 << u
"QgsProcessingOutputLayerDefinition"_s;
1254 return QStringList() << QObject::tr(
"Path for new vector layer" );
1257 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
1277 return QCoreApplication::translate(
"Processing",
"A generic file based destination parameter." );
1280 QString
name()
const override
1282 return QCoreApplication::translate(
"Processing",
"File Destination" );
1285 QString
id()
const override
1287 return u
"fileDestination"_s;
1292 return u
"from qgis.core import QgsProcessingParameterFileDestination"_s;
1297 return u
"QgsProcessingParameterFileDestination"_s;
1309 return QStringList() << u
"str"_s
1310 << u
"QgsProperty"_s;
1315 return QStringList() << QObject::tr(
"Path for new file" );
1320 return QStringList()
1335 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1356 return QCoreApplication::translate(
"Processing",
"A folder destination parameter." );
1359 QString
name()
const override
1361 return QCoreApplication::translate(
"Processing",
"Folder Destination" );
1364 QString
id()
const override
1366 return u
"folderDestination"_s;
1371 return u
"from qgis.core import QgsProcessingParameterFolderDestination"_s;
1376 return u
"QgsProcessingParameterFolderDestination"_s;
1388 return QStringList() << u
"str"_s
1389 << u
"QgsProperty"_s;
1394 return QStringList() << QObject::tr(
"Path for an existing or new folder" );
1399 return QStringList()
1412 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
1432 return QCoreApplication::translate(
"Processing",
"A raster layer destination parameter." );
1435 QString
name()
const override
1437 return QCoreApplication::translate(
"Processing",
"Raster Destination" );
1440 QString
id()
const override
1442 return u
"rasterDestination"_s;
1447 return u
"from qgis.core import QgsProcessingParameterRasterDestination"_s;
1452 return u
"QgsProcessingParameterRasterDestination"_s;
1464 return QStringList() << u
"str"_s
1466 << u
"QgsProcessingOutputLayerDefinition"_s;
1471 return QStringList() << QObject::tr(
"Path for new raster layer" );
1474 QColor
modelColor()
const override {
return QColor( 0, 180, 180 ); };
1493 return QCoreApplication::translate(
"Processing",
"A freeform string parameter." );
1496 QString
name()
const override
1498 return QCoreApplication::translate(
"Processing",
"String" );
1501 QString
id()
const override
1508 return u
"from qgis.core import QgsProcessingParameterString"_s;
1513 return u
"QgsProcessingParameterString"_s;
1518 return QStringList() << u
"str"_s
1519 << u
"QgsProperty"_s;
1524 return QStringList() << QObject::tr(
"String value" )
1525 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1526 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1531 return QStringList()
1556 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
1575 return QCoreApplication::translate(
"Processing",
"An authentication configuration parameter." );
1578 QString
name()
const override
1580 return QCoreApplication::translate(
"Processing",
"Authentication Configuration" );
1583 QString
id()
const override
1585 return u
"authcfg"_s;
1590 return u
"from qgis.core import QgsProcessingParameterAuthConfig"_s;
1595 return u
"QgsProcessingParameterAuthConfig"_s;
1600 return QStringList() << u
"str"_s;
1605 return QStringList() << QObject::tr(
"An existing QGIS authentication ID string" );
1610 return QStringList()
1639 return QCoreApplication::translate(
"Processing",
"An input allowing selection of multiple sources, including multiple map layers or file sources." );
1642 QString
name()
const override
1644 return QCoreApplication::translate(
"Processing",
"Multiple Input" );
1647 QString
id()
const override
1649 return u
"multilayer"_s;
1654 return u
"from qgis.core import QgsProcessingParameterMultipleLayers"_s;
1659 return u
"QgsProcessingParameterMultipleLayers"_s;
1664 return QStringList() << QObject::tr(
"list[str]: list of layer IDs" )
1665 << QObject::tr(
"list[str]: list of layer names" )
1666 << QObject::tr(
"list[str]: list of layer sources" )
1667 << u
"list[QgsMapLayer]"_s
1668 << u
"QgsProperty"_s;
1673 return QStringList()
1685 return QStringList()
1695 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
1714 return QCoreApplication::translate(
"Processing",
"A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
1717 QString
name()
const override
1719 return QCoreApplication::translate(
"Processing",
"Vector Features" );
1722 QString
id()
const override
1729 return u
"from qgis.core import QgsProcessingParameterFeatureSource"_s;
1734 return u
"QgsProcessingParameterFeatureSource"_s;
1739 return QStringList() << QObject::tr(
"str: layer ID" )
1740 << QObject::tr(
"str: layer name" )
1741 << QObject::tr(
"str: layer source" )
1742 << u
"QgsProcessingFeatureSourceDefinition"_s
1744 << u
"QgsVectorLayer"_s;
1749 return QStringList() << QObject::tr(
"Path to a vector layer" );
1754 return QStringList()
1764 return QStringList()
1775 return param->dataTypes();
1777 return QList<int>();
1780 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
1799 return QCoreApplication::translate(
"Processing",
"A numeric parameter, including float or integer values." );
1802 QString
name()
const override
1804 return QCoreApplication::translate(
"Processing",
"Number" );
1807 QString
id()
const override
1814 return u
"from qgis.core import QgsProcessingParameterNumber"_s;
1819 return u
"QgsProcessingParameterNumber"_s;
1824 return QStringList() << u
"int"_s
1826 << u
"QgsProperty"_s;
1831 return QStringList() << QObject::tr(
"A numeric value" )
1832 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1833 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1838 return QStringList()
1854 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1873 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a distance measure." );
1876 QString
name()
const override
1878 return QCoreApplication::translate(
"Processing",
"Distance" );
1881 QString
id()
const override
1883 return u
"distance"_s;
1888 return u
"from qgis.core import QgsProcessingParameterDistance"_s;
1893 return u
"QgsProcessingParameterDistance"_s;
1898 return QStringList() << u
"int"_s
1900 << u
"QgsProperty"_s;
1905 return QStringList() << QObject::tr(
"A numeric value" )
1906 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1907 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1910 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
1930 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing an area measure." );
1933 QString
name()
const override
1935 return QCoreApplication::translate(
"Processing",
"Area" );
1938 QString
id()
const override
1945 return u
"from qgis.core import QgsProcessingParameterArea"_s;
1950 return u
"QgsProcessingParameterArea"_s;
1955 return QStringList() << u
"int"_s
1957 << u
"QgsProperty"_s;
1962 return QStringList() << QObject::tr(
"A numeric value" )
1963 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1964 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1985 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a volume measure." );
1988 QString
name()
const override
1990 return QCoreApplication::translate(
"Processing",
"Volume" );
1993 QString
id()
const override
2000 return u
"from qgis.core import QgsProcessingParameterVolume"_s;
2005 return u
"QgsProcessingParameterVolume"_s;
2010 return QStringList() << u
"int"_s
2012 << u
"QgsProperty"_s;
2017 return QStringList() << QObject::tr(
"A numeric value" )
2018 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2019 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2041 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a duration measure." );
2044 QString
name()
const override
2046 return QCoreApplication::translate(
"Processing",
"Duration" );
2049 QString
id()
const override
2051 return u
"duration"_s;
2056 return u
"from qgis.core import QgsProcessingParameterDuration"_s;
2061 return u
"QgsProcessingParameterDuration"_s;
2066 return QStringList() << u
"int"_s
2068 << u
"QgsProperty"_s;
2073 return QStringList() << QObject::tr(
"A numeric value (unit type set by algorithms)" )
2074 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2075 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2078 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2097 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a map scale." );
2100 QString
name()
const override
2102 return QCoreApplication::translate(
"Processing",
"Scale" );
2105 QString
id()
const override
2112 return u
"from qgis.core import QgsProcessingParameterScale"_s;
2117 return u
"QgsProcessingParameterScale"_s;
2122 return QStringList() << u
"int: scale denominator"_s
2123 << u
"float: scale denominator"_s
2124 << u
"QgsProperty"_s;
2129 return QStringList() << QObject::tr(
"A numeric value representing the scale denominator" );
2132 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2151 return QCoreApplication::translate(
"Processing",
"A raster band parameter, for selecting an existing band from a raster source." );
2154 QString
name()
const override
2156 return QCoreApplication::translate(
"Processing",
"Raster Band" );
2159 QString
id()
const override
2166 return u
"from qgis.core import QgsProcessingParameterBand"_s;
2171 return u
"QgsProcessingParameterBand"_s;
2176 return QStringList() << u
"int"_s
2177 << u
"QgsProperty"_s;
2182 return QStringList() << QObject::tr(
"Integer value representing an existing raster band number" );
2187 return QStringList()
2194 return QStringList()
2223 return QCoreApplication::translate(
"Processing",
"A feature sink destination parameter." );
2226 QString
name()
const override
2228 return QCoreApplication::translate(
"Processing",
"Feature Sink" );
2231 QString
id()
const override
2238 return u
"from qgis.core import QgsProcessingParameterFeatureSink"_s;
2243 return u
"QgsProcessingParameterFeatureSink"_s;
2248 return QStringList() << QObject::tr(
"str: destination vector file, e.g. 'd:/test.shp'" )
2249 << QObject::tr(
"str: 'memory:' to store result in temporary memory layer" )
2250 << QObject::tr(
"str: using vector provider ID prefix and destination URI, e.g. 'postgres:…' to store result in PostGIS table" )
2251 << u
"QgsProcessingOutputLayerDefinition"_s
2252 << u
"QgsProperty"_s;
2257 return QStringList() << QObject::tr(
"Path for new vector layer" );
2260 QColor
modelColor()
const override {
return QColor( 122, 0, 47 ); };
2279 return QCoreApplication::translate(
"Processing",
"A print layout parameter." );
2282 QString
name()
const override
2284 return QCoreApplication::translate(
"Processing",
"Print Layout" );
2287 QString
id()
const override
2294 return u
"from qgis.core import QgsProcessingParameterLayout"_s;
2299 return u
"QgsProcessingParameterLayout"_s;
2304 return QStringList() << QObject::tr(
"str: name of print layout in current project" )
2305 << u
"QgsProperty"_s;
2310 return QStringList() << QObject::tr(
"Name of print layout in current project" );
2315 return QStringList()
2322 return QStringList()
2344 return QCoreApplication::translate(
"Processing",
"A print layout item parameter." );
2347 QString
name()
const override
2349 return QCoreApplication::translate(
"Processing",
"Print Layout Item" );
2352 QString
id()
const override
2354 return u
"layoutitem"_s;
2359 return u
"from qgis.core import QgsProcessingParameterLayoutItem"_s;
2364 return u
"QgsProcessingParameterLayoutItem"_s;
2369 return QStringList() << QObject::tr(
"str: UUID of print layout item" )
2370 << QObject::tr(
"str: id of print layout item" )
2371 << u
"QgsProperty"_s;
2376 return QStringList() << QObject::tr(
"UUID or item id of layout item" );
2381 return QStringList()
2388 return QStringList()
2410 return QCoreApplication::translate(
"Processing",
"A color parameter." );
2413 QString
name()
const override
2415 return QCoreApplication::translate(
"Processing",
"Color" );
2418 QString
id()
const override
2425 return u
"from qgis.core import QgsProcessingParameterColor"_s;
2430 return u
"QgsProcessingParameterColor"_s;
2435 return QStringList() << QObject::tr(
"str: string representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2437 << u
"QgsProperty"_s;
2442 return QStringList() << QObject::tr(
"String representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2443 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2444 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2449 return QStringList()
2456 return QStringList()
2461 QColor
modelColor()
const override {
return QColor( 34, 157, 214 ); };
2480 return QCoreApplication::translate(
"Processing",
"A coordinate operation parameter." );
2483 QString
name()
const override
2485 return QCoreApplication::translate(
"Processing",
"Coordinate Operation" );
2488 QString
id()
const override
2490 return u
"coordinateoperation"_s;
2495 return u
"from qgis.core import QgsProcessingParameterCoordinateOperation"_s;
2500 return u
"QgsProcessingParameterCoordinateOperation"_s;
2505 return QStringList() << QObject::tr(
"str: string representation of a Proj coordinate operation" );
2510 return QStringList() << QObject::tr(
"String representation of Proj coordinate operation" );
2515 return QStringList()
2522 return QStringList()
2544 return QCoreApplication::translate(
"Processing",
"A map theme parameter." );
2547 QString
name()
const override
2549 return QCoreApplication::translate(
"Processing",
"Map Theme" );
2552 QString
id()
const override
2554 return u
"maptheme"_s;
2559 return u
"from qgis.core import QgsProcessingParameterMapTheme"_s;
2564 return u
"QgsProcessingParameterMapTheme"_s;
2569 return QStringList() << QObject::tr(
"str: name of an existing map theme" )
2570 << u
"QgsProperty"_s;
2575 return QStringList() << QObject::tr(
"Name of an existing map theme" );
2580 return QStringList()
2587 return QStringList()
2609 return QCoreApplication::translate(
"Processing",
"A datetime parameter, including datetime, date or time values." );
2612 QString
name()
const override
2614 return QCoreApplication::translate(
"Processing",
"Datetime" );
2617 QString
id()
const override
2619 return u
"datetime"_s;
2624 return u
"from qgis.core import QgsProcessingParameterDateTime"_s;
2629 return u
"QgsProcessingParameterDateTime"_s;
2634 return QStringList() << u
"str"_s
2638 << u
"QgsProperty"_s;
2643 return QStringList() << QObject::tr(
"A datetime value in ISO format" )
2644 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2645 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2650 return QStringList()
2657 return QStringList()
2662 QColor
modelColor()
const override {
return QColor( 255, 131, 23 ); };
2681 return QCoreApplication::translate(
"Processing",
"A connection name parameter, for registered database connections." );
2684 QString
name()
const override
2686 return QCoreApplication::translate(
"Processing",
"Connection Name" );
2689 QString
id()
const override
2691 return u
"providerconnection"_s;
2696 return u
"from qgis.core import QgsProcessingParameterProviderConnection"_s;
2701 return u
"QgsProcessingParameterProviderConnection"_s;
2706 return QStringList() << u
"str"_s
2707 << u
"QgsProperty"_s;
2712 return QStringList() << QObject::tr(
"Name of registered database connection" );
2717 return QStringList()
2725 return QStringList()
2747 return QCoreApplication::translate(
"Processing",
"A database schema parameter." );
2750 QString
name()
const override
2752 return QCoreApplication::translate(
"Processing",
"Database Schema" );
2755 QString
id()
const override
2757 return u
"databaseschema"_s;
2762 return u
"from qgis.core import QgsProcessingParameterDatabaseSchema"_s;
2767 return u
"QgsProcessingParameterDatabaseSchema"_s;
2772 return QStringList() << u
"str"_s
2773 << u
"QgsProperty"_s;
2778 return QStringList() << QObject::tr(
"Name of existing database schema" );
2783 return QStringList()
2791 return QStringList()
2813 return QCoreApplication::translate(
"Processing",
"A database table parameter." );
2816 QString
name()
const override
2818 return QCoreApplication::translate(
"Processing",
"Database Table" );
2821 QString
id()
const override
2823 return u
"databasetable"_s;
2828 return u
"from qgis.core import QgsProcessingParameterDatabaseTable"_s;
2833 return u
"QgsProcessingParameterDatabaseTable"_s;
2838 return QStringList() << u
"str"_s
2839 << u
"QgsProperty"_s;
2844 return QStringList() << QObject::tr(
"Name of existing database table" );
2849 return QStringList()
2857 return QStringList()
2879 return QCoreApplication::translate(
"Processing",
"A point cloud layer parameter." );
2882 QString
name()
const override
2884 return QCoreApplication::translate(
"Processing",
"Point Cloud Layer" );
2889 return u
"from qgis.core import QgsProcessingParameterPointCloudLayer"_s;
2894 return u
"QgsProcessingParameterPointCloudLayer"_s;
2897 QString
id()
const override
2899 return u
"pointcloud"_s;
2904 return QStringList() << QObject::tr(
"str: layer ID" )
2905 << QObject::tr(
"str: layer name" )
2906 << QObject::tr(
"str: layer source" )
2907 << u
"QgsPointCloudLayer"_s;
2912 return QStringList() << QObject::tr(
"Path to a point cloud layer" );
2917 return QStringList()
2926 return QStringList()
2934 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
2953 return QCoreApplication::translate(
"Processing",
"An annotation layer parameter." );
2956 QString
name()
const override
2958 return QCoreApplication::translate(
"Processing",
"Annotation Layer" );
2963 return u
"from qgis.core import QgsProcessingParameterAnnotationLayer"_s;
2968 return u
"QgsProcessingParameterAnnotationLayer"_s;
2971 QString
id()
const override
2973 return u
"annotation"_s;
2978 return QStringList() << QObject::tr(
"str: layer ID" )
2979 << QObject::tr(
"str: layer name" )
2980 << QObject::tr(
"\"main\": main annotation layer for a project" )
2981 << u
"QgsAnnotationLayer"_s;
2986 return QStringList() << QObject::tr(
"Layer ID for an annotation layer, or \"main\" for the main annotation layer in a project." );
2991 return QStringList()
3000 return QStringList()
3006 QColor
modelColor()
const override {
return QColor( 137, 150, 171 ); };
3026 return QCoreApplication::translate(
"Processing",
"A point cloud layer destination parameter." );
3029 QString
name()
const override
3031 return QCoreApplication::translate(
"Processing",
"Point Cloud Destination" );
3034 QString
id()
const override
3036 return u
"pointCloudDestination"_s;
3041 return u
"from qgis.core import QgsProcessingParameterPointCloudDestination"_s;
3046 return u
"QgsProcessingParameterPointCloudDestination"_s;
3058 return QStringList() << u
"str"_s
3060 << u
"QgsProcessingOutputLayerDefinition"_s;
3065 return QStringList() << QObject::tr(
"Path for new point cloud layer" );
3068 QColor
modelColor()
const override {
return QColor( 80, 80, 80 ); };
3087 return QCoreApplication::translate(
"Processing",
"A point cloud attribute parameter, for selecting an attribute from a point cloud source." );
3090 QString
name()
const override
3092 return QCoreApplication::translate(
"Processing",
"Point Cloud Attribute" );
3095 QString
id()
const override
3097 return u
"attribute"_s;
3102 return u
"from qgis.core import QgsProcessingParameterPointCloudAttribute"_s;
3107 return u
"QgsProcessingParameterPointCloudAttribute"_s;
3112 return QStringList() << u
"str"_s
3113 << u
"QgsProperty"_s;
3118 return QStringList() << QObject::tr(
"The name of an attribute" )
3119 << QObject::tr(
"; delimited list of attribute names" );
3124 return QStringList()
3131 return QStringList()
3154 return QCoreApplication::translate(
"Processing",
"A vector tiles layer destination parameter." );
3157 QString
name()
const override
3159 return QCoreApplication::translate(
"Processing",
"Vector Tile Destination" );
3162 QString
id()
const override
3164 return u
"vectorTileDestination"_s;
3169 return u
"from qgis.core import QgsProcessingParameterVectorTileDestination"_s;
3174 return u
"QgsProcessingParameterVectorTileDestination"_s;
3186 return QStringList() << u
"str"_s
3188 << u
"QgsProcessingOutputLayerDefinition"_s;
3193 return QStringList() << QObject::tr(
"Path for new vector tile layer" );
3196 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.