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 QStringLiteral(
"from qgis.core import QgsProcessingParameterRasterLayer" );
60 return QStringLiteral(
"QgsProcessingParameterRasterLayer" );
63 QString
id()
const override
65 return QStringLiteral(
"raster" );
70 return QStringList() << QObject::tr(
"str: layer ID" )
71 << QObject::tr(
"str: layer name" )
72 << QObject::tr(
"str: layer source" )
73 << QStringLiteral(
"QgsProcessingRasterLayerDefinition" )
74 << QStringLiteral(
"QgsProperty" )
75 << QStringLiteral(
"QgsRasterLayer" );
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 QStringLiteral(
"from qgis.core import QgsProcessingParameterMeshLayer" );
136 return QStringLiteral(
"QgsProcessingParameterMeshLayer" );
139 QString
id()
const override
141 return QStringLiteral(
"mesh" );
146 return QStringList() << QObject::tr(
"str: layer ID" )
147 << QObject::tr(
"str: layer name" )
148 << QObject::tr(
"str: layer source" )
149 << QStringLiteral(
"QgsMeshLayer" );
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 QStringLiteral(
"from qgis.core import QgsProcessingParameterVectorLayer" );
210 return QStringLiteral(
"QgsProcessingParameterVectorLayer" );
213 QString
id()
const override
215 return QStringLiteral(
"vector" );
220 return QStringList() << QObject::tr(
"str: layer ID" )
221 << QObject::tr(
"str: layer name" )
222 << QObject::tr(
"str: layer source" )
223 << QStringLiteral(
"QgsProperty" )
224 << QStringLiteral(
"QgsVectorLayer" );
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
288 return QStringLiteral(
"layer" );
293 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMapLayer" );
298 return QStringLiteral(
"QgsProcessingParameterMapLayer" );
303 return QStringList() << QObject::tr(
"str: layer ID" )
304 << QObject::tr(
"str: layer name" )
305 << QObject::tr(
"str: layer source" )
306 << QStringLiteral(
"QgsMapLayer" )
307 << QStringLiteral(
"QgsProperty" )
308 << QStringLiteral(
"QgsRasterLayer" )
309 << QStringLiteral(
"QgsVectorLayer" );
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
370 return QStringLiteral(
"boolean" );
375 return QStringLiteral(
"from qgis.core import QgsProcessingParameterBoolean" );
380 return QStringLiteral(
"QgsProcessingParameterBoolean" );
385 return QStringList() << QStringLiteral(
"bool" )
386 << QStringLiteral(
"int" )
387 << QStringLiteral(
"str" )
388 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"expression" );
468 return QStringLiteral(
"from qgis.core import QgsProcessingParameterExpression" );
473 return QStringLiteral(
"QgsProcessingParameterExpression" );
478 return QStringList() << QStringLiteral(
"str" )
479 << QStringLiteral(
"QgsProperty" );
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
537 return QStringLiteral(
"crs" );
542 return QStringLiteral(
"from qgis.core import QgsProcessingParameterCrs" );
547 return QStringLiteral(
"QgsProcessingParameterCrs" );
553 << QStringLiteral(
"str: 'ProjectCrs'" )
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" )
563 << QStringLiteral(
"QgsProperty" );
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
626 return QStringLiteral(
"range" );
631 return QStringLiteral(
"from qgis.core import QgsProcessingParameterRange" );
636 return QStringLiteral(
"QgsProcessingParameterRange" );
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'" )
644 << QStringLiteral(
"QgsProperty" );
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
694 return QStringLiteral(
"point" );
699 return QStringLiteral(
"from qgis.core import QgsProcessingParameterPoint" );
704 return QStringLiteral(
"QgsProcessingParameterPoint" );
709 return QStringList() << QObject::tr(
"str: as an 'x,y' string, e.g. '1.5,10.1'" )
710 << QStringLiteral(
"QgsPointXY" )
711 << QStringLiteral(
"QgsProperty" )
712 << QStringLiteral(
"QgsReferencedPointXY" )
713 << QStringLiteral(
"QgsGeometry: centroid of geometry is used" );
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 QStringLiteral(
"geometry" );
769 return QStringLiteral(
"from qgis.core import QgsProcessingParameterGeometry" );
774 return QStringLiteral(
"QgsProcessingParameterGeometry" );
779 return QStringList() << QObject::tr(
"str: as Well-Known Text string (WKT)" )
780 << QStringLiteral(
"QgsGeometry" )
781 << QStringLiteral(
"QgsProperty" );
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
834 return QStringLiteral(
"enum" );
839 return QStringLiteral(
"from qgis.core import QgsProcessingParameterEnum" );
844 return QStringLiteral(
"QgsProcessingParameterEnum" );
849 return QStringList() << QStringLiteral(
"int" )
850 << QObject::tr(
"str: as string representation of int, e.g. '1'" )
851 << QStringLiteral(
"QgsProperty" );
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
905 return QStringLiteral(
"extent" );
910 return QStringLiteral(
"from qgis.core import QgsProcessingParameterExtent" );
915 return QStringLiteral(
"QgsProcessingParameterExtent" );
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" )
926 << QStringLiteral(
"QgsProperty" )
927 << QStringLiteral(
"QgsRectangle" )
928 << QStringLiteral(
"QgsReferencedRectangle" )
929 << QStringLiteral(
"QgsGeometry: bounding box of geometry is used" );
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
991 return QStringLiteral(
"matrix" );
996 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMatrix" );
1001 return QStringLiteral(
"QgsProcessingParameterMatrix" );
1006 return QStringList() << QObject::tr(
"str: as comma delimited list of values" )
1007 << QStringLiteral(
"list" )
1008 << QStringLiteral(
"QgsProperty" );
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
1056 return QStringLiteral(
"file" );
1061 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFile" );
1066 return QStringLiteral(
"QgsProcessingParameterFile" );
1071 return QStringList() << QStringLiteral(
"str" )
1072 << QStringLiteral(
"QgsProperty" );
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
1127 return QStringLiteral(
"field" );
1132 return QStringLiteral(
"from qgis.core import QgsProcessingParameterField" );
1137 return QStringLiteral(
"QgsProcessingParameterField" );
1142 return QStringList() << QStringLiteral(
"str" )
1143 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"vectorDestination" );
1230 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVectorDestination" );
1235 return QStringLiteral(
"QgsProcessingParameterVectorDestination" );
1247 return QStringList() << QStringLiteral(
"str" )
1248 << QStringLiteral(
"QgsProperty" )
1249 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
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 QStringLiteral(
"fileDestination" );
1292 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFileDestination" );
1297 return QStringLiteral(
"QgsProcessingParameterFileDestination" );
1309 return QStringList() << QStringLiteral(
"str" )
1310 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"folderDestination" );
1371 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFolderDestination" );
1376 return QStringLiteral(
"QgsProcessingParameterFolderDestination" );
1388 return QStringList() << QStringLiteral(
"str" )
1389 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"rasterDestination" );
1447 return QStringLiteral(
"from qgis.core import QgsProcessingParameterRasterDestination" );
1452 return QStringLiteral(
"QgsProcessingParameterRasterDestination" );
1464 return QStringList() << QStringLiteral(
"str" )
1465 << QStringLiteral(
"QgsProperty" )
1466 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
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
1503 return QStringLiteral(
"string" );
1508 return QStringLiteral(
"from qgis.core import QgsProcessingParameterString" );
1513 return QStringLiteral(
"QgsProcessingParameterString" );
1518 return QStringList() << QStringLiteral(
"str" )
1519 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"authcfg" );
1590 return QStringLiteral(
"from qgis.core import QgsProcessingParameterAuthConfig" );
1595 return QStringLiteral(
"QgsProcessingParameterAuthConfig" );
1600 return QStringList() << QStringLiteral(
"str" );
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 QStringLiteral(
"multilayer" );
1654 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMultipleLayers" );
1659 return QStringLiteral(
"QgsProcessingParameterMultipleLayers" );
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 << QStringLiteral(
"list[QgsMapLayer]" )
1668 << QStringLiteral(
"QgsProperty" );
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
1724 return QStringLiteral(
"source" );
1729 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFeatureSource" );
1734 return QStringLiteral(
"QgsProcessingParameterFeatureSource" );
1739 return QStringList() << QObject::tr(
"str: layer ID" )
1740 << QObject::tr(
"str: layer name" )
1741 << QObject::tr(
"str: layer source" )
1742 << QStringLiteral(
"QgsProcessingFeatureSourceDefinition" )
1743 << QStringLiteral(
"QgsProperty" )
1744 << QStringLiteral(
"QgsVectorLayer" );
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
1809 return QStringLiteral(
"number" );
1814 return QStringLiteral(
"from qgis.core import QgsProcessingParameterNumber" );
1819 return QStringLiteral(
"QgsProcessingParameterNumber" );
1824 return QStringList() << QStringLiteral(
"int" )
1825 << QStringLiteral(
"float" )
1826 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"distance" );
1888 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDistance" );
1893 return QStringLiteral(
"QgsProcessingParameterDistance" );
1898 return QStringList() << QStringLiteral(
"int" )
1899 << QStringLiteral(
"float" )
1900 << QStringLiteral(
"QgsProperty" );
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
1940 return QStringLiteral(
"area" );
1945 return QStringLiteral(
"from qgis.core import QgsProcessingParameterArea" );
1950 return QStringLiteral(
"QgsProcessingParameterArea" );
1955 return QStringList() << QStringLiteral(
"int" )
1956 << QStringLiteral(
"float" )
1957 << QStringLiteral(
"QgsProperty" );
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
1995 return QStringLiteral(
"volume" );
2000 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVolume" );
2005 return QStringLiteral(
"QgsProcessingParameterVolume" );
2010 return QStringList() << QStringLiteral(
"int" )
2011 << QStringLiteral(
"float" )
2012 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"duration" );
2056 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDuration" );
2061 return QStringLiteral(
"QgsProcessingParameterDuration" );
2066 return QStringList() << QStringLiteral(
"int" )
2067 << QStringLiteral(
"float" )
2068 << QStringLiteral(
"QgsProperty" );
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
2107 return QStringLiteral(
"scale" );
2112 return QStringLiteral(
"from qgis.core import QgsProcessingParameterScale" );
2117 return QStringLiteral(
"QgsProcessingParameterScale" );
2122 return QStringList() << QStringLiteral(
"int: scale denominator" )
2123 << QStringLiteral(
"float: scale denominator" )
2124 << QStringLiteral(
"QgsProperty" );
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
2161 return QStringLiteral(
"band" );
2166 return QStringLiteral(
"from qgis.core import QgsProcessingParameterBand" );
2171 return QStringLiteral(
"QgsProcessingParameterBand" );
2176 return QStringList() << QStringLiteral(
"int" )
2177 << QStringLiteral(
"QgsProperty" );
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
2233 return QStringLiteral(
"sink" );
2238 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFeatureSink" );
2243 return QStringLiteral(
"QgsProcessingParameterFeatureSink" );
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 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" )
2252 << QStringLiteral(
"QgsProperty" );
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
2289 return QStringLiteral(
"layout" );
2294 return QStringLiteral(
"from qgis.core import QgsProcessingParameterLayout" );
2299 return QStringLiteral(
"QgsProcessingParameterLayout" );
2304 return QStringList() << QObject::tr(
"str: name of print layout in current project" )
2305 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"layoutitem" );
2359 return QStringLiteral(
"from qgis.core import QgsProcessingParameterLayoutItem" );
2364 return QStringLiteral(
"QgsProcessingParameterLayoutItem" );
2369 return QStringList() << QObject::tr(
"str: UUID of print layout item" )
2370 << QObject::tr(
"str: id of print layout item" )
2371 << QStringLiteral(
"QgsProperty" );
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
2420 return QStringLiteral(
"color" );
2425 return QStringLiteral(
"from qgis.core import QgsProcessingParameterColor" );
2430 return QStringLiteral(
"QgsProcessingParameterColor" );
2435 return QStringList() << QObject::tr(
"str: string representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2436 << QStringLiteral(
"QColor" )
2437 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"coordinateoperation" );
2495 return QStringLiteral(
"from qgis.core import QgsProcessingParameterCoordinateOperation" );
2500 return QStringLiteral(
"QgsProcessingParameterCoordinateOperation" );
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 QStringLiteral(
"maptheme" );
2559 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMapTheme" );
2564 return QStringLiteral(
"QgsProcessingParameterMapTheme" );
2569 return QStringList() << QObject::tr(
"str: name of an existing map theme" )
2570 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"datetime" );
2624 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDateTime" );
2629 return QStringLiteral(
"QgsProcessingParameterDateTime" );
2634 return QStringList() << QStringLiteral(
"str" )
2635 << QStringLiteral(
"QDateTime" )
2636 << QStringLiteral(
"QDate" )
2637 << QStringLiteral(
"QTime" )
2638 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"providerconnection" );
2696 return QStringLiteral(
"from qgis.core import QgsProcessingParameterProviderConnection" );
2701 return QStringLiteral(
"QgsProcessingParameterProviderConnection" );
2706 return QStringList() << QStringLiteral(
"str" )
2707 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"databaseschema" );
2762 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDatabaseSchema" );
2767 return QStringLiteral(
"QgsProcessingParameterDatabaseSchema" );
2772 return QStringList() << QStringLiteral(
"str" )
2773 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"databasetable" );
2828 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDatabaseTable" );
2833 return QStringLiteral(
"QgsProcessingParameterDatabaseTable" );
2838 return QStringList() << QStringLiteral(
"str" )
2839 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"from qgis.core import QgsProcessingParameterPointCloudLayer" );
2894 return QStringLiteral(
"QgsProcessingParameterPointCloudLayer" );
2897 QString
id()
const override
2899 return QStringLiteral(
"pointcloud" );
2904 return QStringList() << QObject::tr(
"str: layer ID" )
2905 << QObject::tr(
"str: layer name" )
2906 << QObject::tr(
"str: layer source" )
2907 << QStringLiteral(
"QgsPointCloudLayer" );
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 QStringLiteral(
"from qgis.core import QgsProcessingParameterAnnotationLayer" );
2968 return QStringLiteral(
"QgsProcessingParameterAnnotationLayer" );
2971 QString
id()
const override
2973 return QStringLiteral(
"annotation" );
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 << QStringLiteral(
"QgsAnnotationLayer" );
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 QStringLiteral(
"pointCloudDestination" );
3041 return QStringLiteral(
"from qgis.core import QgsProcessingParameterPointCloudDestination" );
3046 return QStringLiteral(
"QgsProcessingParameterPointCloudDestination" );
3058 return QStringList() << QStringLiteral(
"str" )
3059 << QStringLiteral(
"QgsProperty" )
3060 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
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 QStringLiteral(
"attribute" );
3102 return QStringLiteral(
"from qgis.core import QgsProcessingParameterPointCloudAttribute" );
3107 return QStringLiteral(
"QgsProcessingParameterPointCloudAttribute" );
3112 return QStringList() << QStringLiteral(
"str" )
3113 << QStringLiteral(
"QgsProperty" );
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 QStringLiteral(
"vectorTileDestination" );
3169 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVectorTileDestination" );
3174 return QStringLiteral(
"QgsProcessingParameterVectorTileDestination" );
3186 return QStringList() << QStringLiteral(
"str" )
3187 << QStringLiteral(
"QgsProperty" )
3188 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
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.