18#ifndef QGSPROCESSINGPARAMETERTYPEIMPL_H
19#define QGSPROCESSINGPARAMETERTYPEIMPL_H
24#include <QCoreApplication>
44 return QCoreApplication::translate(
"Processing",
"A raster layer parameter." );
47 QString
name()
const override
49 return QCoreApplication::translate(
"Processing",
"Raster Layer" );
54 return QStringLiteral(
"from qgis.core import QgsProcessingParameterRasterLayer" );
59 return QStringLiteral(
"QgsProcessingParameterRasterLayer" );
62 QString
id()
const override
64 return QStringLiteral(
"raster" );
69 return QStringList() << QObject::tr(
"str: layer ID" )
70 << QObject::tr(
"str: layer name" )
71 << QObject::tr(
"str: layer source" )
72 << QStringLiteral(
"QgsProperty" )
73 << QStringLiteral(
"QgsRasterLayer" );
78 return QStringList() << QObject::tr(
"Path to a raster layer" );
117 return QCoreApplication::translate(
"Processing",
"A mesh layer parameter." );
120 QString
name()
const override
122 return QCoreApplication::translate(
"Processing",
"Mesh Layer" );
127 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMeshLayer" );
132 return QStringLiteral(
"QgsProcessingParameterMeshLayer" );
135 QString
id()
const override
137 return QStringLiteral(
"mesh" );
142 return QStringList() << QObject::tr(
"str: layer ID" )
143 << QObject::tr(
"str: layer name" )
144 << QObject::tr(
"str: layer source" )
145 << QStringLiteral(
"QgsMeshLayer" );
150 return QStringList() << QObject::tr(
"Path to a mesh layer" );
189 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." );
192 QString
name()
const override
194 return QCoreApplication::translate(
"Processing",
"Vector Layer" );
199 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVectorLayer" );
204 return QStringLiteral(
"QgsProcessingParameterVectorLayer" );
207 QString
id()
const override
209 return QStringLiteral(
"vector" );
214 return QStringList() << QObject::tr(
"str: layer ID" )
215 << QObject::tr(
"str: layer name" )
216 << QObject::tr(
"str: layer source" )
217 << QStringLiteral(
"QgsProperty" )
218 << QStringLiteral(
"QgsVectorLayer" );
223 return QStringList() << QObject::tr(
"Path to a vector layer" );
248 return param->dataTypes();
270 return QCoreApplication::translate(
"Processing",
"A generic map layer parameter, which accepts either vector or raster layers." );
273 QString
name()
const override
275 return QCoreApplication::translate(
"Processing",
"Map Layer" );
278 QString
id()
const override
280 return QStringLiteral(
"layer" );
285 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMapLayer" );
290 return QStringLiteral(
"QgsProcessingParameterMapLayer" );
295 return QStringList() << QObject::tr(
"str: layer ID" )
296 << QObject::tr(
"str: layer name" )
297 << QObject::tr(
"str: layer source" )
298 << QStringLiteral(
"QgsMapLayer" )
299 << QStringLiteral(
"QgsProperty" )
300 << QStringLiteral(
"QgsRasterLayer" )
301 << QStringLiteral(
"QgsVectorLayer" );
306 return QStringList() << QObject::tr(
"Path to a vector, raster or mesh layer" );
350 return QCoreApplication::translate(
"Processing",
"A boolean parameter, for true/false values." );
353 QString
name()
const override
355 return QCoreApplication::translate(
"Processing",
"Boolean" );
358 QString
id()
const override
360 return QStringLiteral(
"boolean" );
365 return QStringLiteral(
"from qgis.core import QgsProcessingParameterBoolean" );
370 return QStringLiteral(
"QgsProcessingParameterBoolean" );
375 return QStringList() << QStringLiteral(
"bool" )
376 << QStringLiteral(
"int" )
377 << QStringLiteral(
"str" )
378 << QStringLiteral(
"QgsProperty" );
383 return QStringList() << QObject::tr(
"1 for true/yes" )
384 << QObject::tr(
"0 for false/no" )
385 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
386 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
441 return QCoreApplication::translate(
"Processing",
"An expression parameter, to add custom expressions based on layer fields." );
444 QString
name()
const override
446 return QCoreApplication::translate(
"Processing",
"Expression" );
449 QString
id()
const override
451 return QStringLiteral(
"expression" );
456 return QStringLiteral(
"from qgis.core import QgsProcessingParameterExpression" );
461 return QStringLiteral(
"QgsProcessingParameterExpression" );
466 return QStringList() << QStringLiteral(
"str" )
467 << QStringLiteral(
"QgsProperty" );
472 return QStringList() << QObject::tr(
"A valid QGIS expression string, e.g \"road_name\" = 'MAIN RD'" );
513 return QCoreApplication::translate(
"Processing",
"A coordinate reference system (CRS) input parameter." );
516 QString
name()
const override
518 return QCoreApplication::translate(
"Processing",
"CRS" );
521 QString
id()
const override
523 return QStringLiteral(
"crs" );
528 return QStringLiteral(
"from qgis.core import QgsProcessingParameterCrs" );
533 return QStringLiteral(
"QgsProcessingParameterCrs" );
539 << QStringLiteral(
"str: 'ProjectCrs'" )
540 << QObject::tr(
"str: CRS auth ID (e.g. 'EPSG:3111')" )
541 << QObject::tr(
"str: CRS PROJ4 (e.g. 'PROJ4:…')" )
542 << QObject::tr(
"str: CRS WKT (e.g. 'WKT:…')" )
543 << QObject::tr(
"str: layer ID. CRS of layer is used." )
544 << QObject::tr(
"str: layer name. CRS of layer is used." )
545 << QObject::tr(
"str: layer source. CRS of layer is used." )
546 << QObject::tr(
"QgsCoordinateReferenceSystem" )
547 << QObject::tr(
"QgsMapLayer: CRS of layer is used" )
548 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: CRS of source is used" )
549 << QStringLiteral(
"QgsProperty" );
554 return QStringList() << QObject::tr(
"CRS as an auth ID (e.g. 'EPSG:3111')" )
555 << QObject::tr(
"CRS as a PROJ4 string (e.g. 'PROJ4:…')" )
556 << QObject::tr(
"CRS as a WKT string (e.g. 'WKT:…')" )
557 << QObject::tr(
"Path to a layer. The CRS of the layer is used." ) ;
600 return QCoreApplication::translate(
"Processing",
"A numeric range parameter for processing algorithms." );
603 QString
name()
const override
605 return QCoreApplication::translate(
"Processing",
"Range" );
608 QString
id()
const override
610 return QStringLiteral(
"range" );
615 return QStringLiteral(
"from qgis.core import QgsProcessingParameterRange" );
620 return QStringLiteral(
"QgsProcessingParameterRange" );
625 return QStringList() << QObject::tr(
"list[float]: list of 2 float values" )
626 << QObject::tr(
"list[str]: list of strings representing floats" )
627 << QObject::tr(
"str: as two comma delimited floats, e.g. '1,10'" )
628 << QStringLiteral(
"QgsProperty" );
633 return QStringList() << QObject::tr(
"Two comma separated numeric values, e.g. '1,10'" );
666 return QCoreApplication::translate(
"Processing",
"A point geometry parameter." );
669 QString
name()
const override
671 return QCoreApplication::translate(
"Processing",
"Point" );
674 QString
id()
const override
676 return QStringLiteral(
"point" );
681 return QStringLiteral(
"from qgis.core import QgsProcessingParameterPoint" );
686 return QStringLiteral(
"QgsProcessingParameterPoint" );
691 return QStringList() << QObject::tr(
"str: as an 'x,y' string, e.g. '1.5,10.1'" )
692 << QStringLiteral(
"QgsPointXY" )
693 << QStringLiteral(
"QgsProperty" )
694 << QStringLiteral(
"QgsReferencedPointXY" )
695 << QStringLiteral(
"QgsGeometry: centroid of geometry is used" );
700 return QStringList() << QObject::tr(
"Point coordinate as an 'x,y' string, e.g. '1.5,10.1'" );
734 return QCoreApplication::translate(
"Processing",
"A geometry parameter." );
737 QString
name()
const override
739 return QCoreApplication::translate(
"Processing",
"Geometry" );
742 QString
id()
const override
744 return QStringLiteral(
"geometry" );
749 return QStringLiteral(
"from qgis.core import QgsProcessingParameterGeometry" );
754 return QStringLiteral(
"QgsProcessingParameterGeometry" );
759 return QStringList() << QObject::tr(
"str: as Well-Known Text string (WKT)" )
760 << QStringLiteral(
"QgsGeometry" )
761 << QStringLiteral(
"QgsProperty" );
766 return QStringList() << QObject::tr(
"Well-Known Text string (WKT)" );
802 return QCoreApplication::translate(
"Processing",
"An enumerated type parameter." );
805 QString
name()
const override
807 return QCoreApplication::translate(
"Processing",
"Enum" );
810 QString
id()
const override
812 return QStringLiteral(
"enum" );
817 return QStringLiteral(
"from qgis.core import QgsProcessingParameterEnum" );
822 return QStringLiteral(
"QgsProcessingParameterEnum" );
827 return QStringList() << QStringLiteral(
"int" )
828 << QObject::tr(
"str: as string representation of int, e.g. '1'" )
829 << QStringLiteral(
"QgsProperty" );
834 return QStringList() << QObject::tr(
"Number of selected option, e.g. '1'" )
835 << QObject::tr(
"Comma separated list of options, e.g. '1,3'" );
871 return QCoreApplication::translate(
"Processing",
"A map extent parameter." );
874 QString
name()
const override
876 return QCoreApplication::translate(
"Processing",
"Extent" );
879 QString
id()
const override
881 return QStringLiteral(
"extent" );
886 return QStringLiteral(
"from qgis.core import QgsProcessingParameterExtent" );
891 return QStringLiteral(
"QgsProcessingParameterExtent" );
896 return QStringList() << QObject::tr(
"str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
897 << QObject::tr(
"str: layer ID. Extent of layer is used." )
898 << QObject::tr(
"str: layer name. Extent of layer is used." )
899 << QObject::tr(
"str: layer source. Extent of layer is used." )
900 << QObject::tr(
"QgsMapLayer: Extent of layer is used" )
901 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: Extent of source is used" )
902 << QStringLiteral(
"QgsProperty" )
903 << QStringLiteral(
"QgsRectangle" )
904 << QStringLiteral(
"QgsReferencedRectangle" )
905 << QStringLiteral(
"QgsGeometry: bounding box of geometry is used" );
910 return QStringList() << QObject::tr(
"A comma delimited string of x min, x max, y min, y max. E.g. '4,10,101,105'" )
911 << QObject::tr(
"Path to a layer. The extent of the layer is used." ) ;
955 return QCoreApplication::translate(
"Processing",
"A table (matrix) parameter for processing algorithms." );
958 QString
name()
const override
960 return QCoreApplication::translate(
"Processing",
"Matrix" );
963 QString
id()
const override
965 return QStringLiteral(
"matrix" );
970 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMatrix" );
975 return QStringLiteral(
"QgsProcessingParameterMatrix" );
980 return QStringList() << QObject::tr(
"str: as comma delimited list of values" )
981 << QStringLiteral(
"list" )
982 << QStringLiteral(
"QgsProperty" );
987 return QStringList() << QObject::tr(
"A comma delimited list of values" );
998 return QStringList();
1018 return QCoreApplication::translate(
"Processing",
"A file or folder parameter, for use with non-map layer file sources or folders." );
1021 QString
name()
const override
1023 return QCoreApplication::translate(
"Processing",
"File/Folder" );
1026 QString
id()
const override
1028 return QStringLiteral(
"file" );
1033 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFile" );
1038 return QStringLiteral(
"QgsProcessingParameterFile" );
1043 return QStringList() << QStringLiteral(
"str" )
1044 << QStringLiteral(
"QgsProperty" );
1049 return QStringList() << QObject::tr(
"Path to a file" );
1054 return QStringList()
1087 return QCoreApplication::translate(
"Processing",
"A vector field parameter, for selecting an existing field from a vector source." );
1090 QString
name()
const override
1092 return QCoreApplication::translate(
"Processing",
"Vector Field" );
1095 QString
id()
const override
1097 return QStringLiteral(
"field" );
1102 return QStringLiteral(
"from qgis.core import QgsProcessingParameterField" );
1107 return QStringLiteral(
"QgsProcessingParameterField" );
1112 return QStringList() << QStringLiteral(
"str" )
1113 << QStringLiteral(
"QgsProperty" );
1118 return QStringList() << QObject::tr(
"The name of an existing field" )
1119 << QObject::tr(
"; delimited list of existing field names" );
1124 return QStringList()
1131 return QStringList()
1149 return QStringList()
1160 return QStringList()
1185 return QCoreApplication::translate(
"Processing",
"A vector layer destination parameter." );
1188 QString
name()
const override
1190 return QCoreApplication::translate(
"Processing",
"Vector Destination" );
1193 QString
id()
const override
1195 return QStringLiteral(
"vectorDestination" );
1200 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVectorDestination" );
1205 return QStringLiteral(
"QgsProcessingParameterVectorDestination" );
1217 return QStringList() << QStringLiteral(
"str" )
1218 << QStringLiteral(
"QgsProperty" )
1219 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
1224 return QStringList() << QObject::tr(
"Path for new vector layer" );
1245 return QCoreApplication::translate(
"Processing",
"A generic file based destination parameter." );
1248 QString
name()
const override
1250 return QCoreApplication::translate(
"Processing",
"File Destination" );
1253 QString
id()
const override
1255 return QStringLiteral(
"fileDestination" );
1260 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFileDestination" );
1265 return QStringLiteral(
"QgsProcessingParameterFileDestination" );
1277 return QStringList() << QStringLiteral(
"str" )
1278 << QStringLiteral(
"QgsProperty" );
1283 return QStringList() << QObject::tr(
"Path for new file" );
1288 return QStringList()
1322 return QCoreApplication::translate(
"Processing",
"A folder destination parameter." );
1325 QString
name()
const override
1327 return QCoreApplication::translate(
"Processing",
"Folder Destination" );
1330 QString
id()
const override
1332 return QStringLiteral(
"folderDestination" );
1337 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFolderDestination" );
1342 return QStringLiteral(
"QgsProcessingParameterFolderDestination" );
1354 return QStringList() << QStringLiteral(
"str" )
1355 << QStringLiteral(
"QgsProperty" );
1360 return QStringList() << QObject::tr(
"Path for an existing or new folder" );
1365 return QStringList()
1396 return QCoreApplication::translate(
"Processing",
"A raster layer destination parameter." );
1399 QString
name()
const override
1401 return QCoreApplication::translate(
"Processing",
"Raster Destination" );
1404 QString
id()
const override
1406 return QStringLiteral(
"rasterDestination" );
1411 return QStringLiteral(
"from qgis.core import QgsProcessingParameterRasterDestination" );
1416 return QStringLiteral(
"QgsProcessingParameterRasterDestination" );
1428 return QStringList() << QStringLiteral(
"str" )
1429 << QStringLiteral(
"QgsProperty" )
1430 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
1435 return QStringList() << QObject::tr(
"Path for new raster layer" );
1455 return QCoreApplication::translate(
"Processing",
"A freeform string parameter." );
1458 QString
name()
const override
1460 return QCoreApplication::translate(
"Processing",
"String" );
1463 QString
id()
const override
1465 return QStringLiteral(
"string" );
1470 return QStringLiteral(
"from qgis.core import QgsProcessingParameterString" );
1475 return QStringLiteral(
"QgsProcessingParameterString" );
1480 return QStringList() << QStringLiteral(
"str" )
1481 << QStringLiteral(
"QgsProperty" );
1486 return QStringList() << QObject::tr(
"String value" )
1487 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1488 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1493 return QStringList()
1535 return QCoreApplication::translate(
"Processing",
"An authentication configuration parameter." );
1538 QString
name()
const override
1540 return QCoreApplication::translate(
"Processing",
"Authentication Configuration" );
1543 QString
id()
const override
1545 return QStringLiteral(
"authcfg" );
1550 return QStringLiteral(
"from qgis.core import QgsProcessingParameterAuthConfig" );
1555 return QStringLiteral(
"QgsProcessingParameterAuthConfig" );
1560 return QStringList() << QStringLiteral(
"str" );
1565 return QStringList() << QObject::tr(
"An existing QGIS authentication ID string" );
1570 return QStringList()
1599 return QCoreApplication::translate(
"Processing",
"An input allowing selection of multiple sources, including multiple map layers or file sources." );
1602 QString
name()
const override
1604 return QCoreApplication::translate(
"Processing",
"Multiple Input" );
1607 QString
id()
const override
1609 return QStringLiteral(
"multilayer" );
1614 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMultipleLayers" );
1619 return QStringLiteral(
"QgsProcessingParameterMultipleLayers" );
1624 return QStringList() << QObject::tr(
"list[str]: list of layer IDs" )
1625 << QObject::tr(
"list[str]: list of layer names" )
1626 << QObject::tr(
"list[str]: list of layer sources" )
1627 << QStringLiteral(
"list[QgsMapLayer]" )
1628 << QStringLiteral(
"QgsProperty" );
1633 return QStringList()
1645 return QStringList()
1672 return QCoreApplication::translate(
"Processing",
"A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
1675 QString
name()
const override
1677 return QCoreApplication::translate(
"Processing",
"Vector Features" );
1680 QString
id()
const override
1682 return QStringLiteral(
"source" );
1687 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFeatureSource" );
1692 return QStringLiteral(
"QgsProcessingParameterFeatureSource" );
1697 return QStringList() << QObject::tr(
"str: layer ID" )
1698 << QObject::tr(
"str: layer name" )
1699 << QObject::tr(
"str: layer source" )
1700 << QStringLiteral(
"QgsProcessingFeatureSourceDefinition" )
1701 << QStringLiteral(
"QgsProperty" )
1702 << QStringLiteral(
"QgsVectorLayer" );
1707 return QStringList() << QObject::tr(
"Path to a vector layer" );
1712 return QStringList()
1722 return QStringList()
1733 return param->dataTypes();
1735 return QList<int>();
1755 return QCoreApplication::translate(
"Processing",
"A numeric parameter, including float or integer values." );
1758 QString
name()
const override
1760 return QCoreApplication::translate(
"Processing",
"Number" );
1763 QString
id()
const override
1765 return QStringLiteral(
"number" );
1770 return QStringLiteral(
"from qgis.core import QgsProcessingParameterNumber" );
1775 return QStringLiteral(
"QgsProcessingParameterNumber" );
1780 return QStringList() << QStringLiteral(
"int" )
1781 << QStringLiteral(
"float" )
1782 << QStringLiteral(
"QgsProperty" );
1787 return QStringList() << QObject::tr(
"A numeric value" )
1788 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1789 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1794 return QStringList()
1827 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a distance measure." );
1830 QString
name()
const override
1832 return QCoreApplication::translate(
"Processing",
"Distance" );
1835 QString
id()
const override
1837 return QStringLiteral(
"distance" );
1842 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDistance" );
1847 return QStringLiteral(
"QgsProcessingParameterDistance" );
1852 return QStringList() << QStringLiteral(
"int" )
1853 << QStringLiteral(
"float" )
1854 << QStringLiteral(
"QgsProperty" );
1859 return QStringList() << QObject::tr(
"A numeric value" )
1860 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1861 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1882 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing an area measure." );
1885 QString
name()
const override
1887 return QCoreApplication::translate(
"Processing",
"Area" );
1890 QString
id()
const override
1892 return QStringLiteral(
"area" );
1897 return QStringLiteral(
"from qgis.core import QgsProcessingParameterArea" );
1902 return QStringLiteral(
"QgsProcessingParameterArea" );
1907 return QStringList() << QStringLiteral(
"int" )
1908 << QStringLiteral(
"float" )
1909 << QStringLiteral(
"QgsProperty" );
1914 return QStringList() << QObject::tr(
"A numeric value" )
1915 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1916 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1937 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a volume measure." );
1940 QString
name()
const override
1942 return QCoreApplication::translate(
"Processing",
"Volume" );
1945 QString
id()
const override
1947 return QStringLiteral(
"volume" );
1952 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVolume" );
1957 return QStringLiteral(
"QgsProcessingParameterVolume" );
1962 return QStringList() << QStringLiteral(
"int" )
1963 << QStringLiteral(
"float" )
1964 << QStringLiteral(
"QgsProperty" );
1969 return QStringList() << QObject::tr(
"A numeric value" )
1970 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1971 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1993 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a duration measure." );
1996 QString
name()
const override
1998 return QCoreApplication::translate(
"Processing",
"Duration" );
2001 QString
id()
const override
2003 return QStringLiteral(
"duration" );
2008 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDuration" );
2013 return QStringLiteral(
"QgsProcessingParameterDuration" );
2018 return QStringList() << QStringLiteral(
"int" )
2019 << QStringLiteral(
"float" )
2020 << QStringLiteral(
"QgsProperty" );
2025 return QStringList() << QObject::tr(
"A numeric value (unit type set by algorithms)" )
2026 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2027 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2047 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a map scale." );
2050 QString
name()
const override
2052 return QCoreApplication::translate(
"Processing",
"Scale" );
2055 QString
id()
const override
2057 return QStringLiteral(
"scale" );
2062 return QStringLiteral(
"from qgis.core import QgsProcessingParameterScale" );
2067 return QStringLiteral(
"QgsProcessingParameterScale" );
2072 return QStringList() << QStringLiteral(
"int: scale denominator" )
2073 << QStringLiteral(
"float: scale denominator" )
2074 << QStringLiteral(
"QgsProperty" );
2079 return QStringList() << QObject::tr(
"A numeric value representing the scale denominator" );
2099 return QCoreApplication::translate(
"Processing",
"A raster band parameter, for selecting an existing band from a raster source." );
2102 QString
name()
const override
2104 return QCoreApplication::translate(
"Processing",
"Raster Band" );
2107 QString
id()
const override
2109 return QStringLiteral(
"band" );
2114 return QStringLiteral(
"from qgis.core import QgsProcessingParameterBand" );
2119 return QStringLiteral(
"QgsProcessingParameterBand" );
2124 return QStringList() << QStringLiteral(
"int" )
2125 << QStringLiteral(
"QgsProperty" );
2130 return QStringList() << QObject::tr(
"Integer value representing an existing raster band number" );
2135 return QStringList()
2142 return QStringList()
2171 return QCoreApplication::translate(
"Processing",
"A feature sink destination parameter." );
2174 QString
name()
const override
2176 return QCoreApplication::translate(
"Processing",
"Feature Sink" );
2179 QString
id()
const override
2181 return QStringLiteral(
"sink" );
2186 return QStringLiteral(
"from qgis.core import QgsProcessingParameterFeatureSink" );
2191 return QStringLiteral(
"QgsProcessingParameterFeatureSink" );
2196 return QStringList() << QObject::tr(
"str: destination vector file, e.g. 'd:/test.shp'" )
2197 << QObject::tr(
"str: 'memory:' to store result in temporary memory layer" )
2198 << QObject::tr(
"str: using vector provider ID prefix and destination URI, e.g. 'postgres:…' to store result in PostGIS table" )
2199 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" )
2200 << QStringLiteral(
"QgsProperty" );
2205 return QStringList() << QObject::tr(
"Path for new vector layer" );
2225 return QCoreApplication::translate(
"Processing",
"A print layout parameter." );
2228 QString
name()
const override
2230 return QCoreApplication::translate(
"Processing",
"Print Layout" );
2233 QString
id()
const override
2235 return QStringLiteral(
"layout" );
2240 return QStringLiteral(
"from qgis.core import QgsProcessingParameterLayout" );
2245 return QStringLiteral(
"QgsProcessingParameterLayout" );
2250 return QStringList() << QObject::tr(
"str: name of print layout in current project" )
2251 << QStringLiteral(
"QgsProperty" );
2256 return QStringList() << QObject::tr(
"Name of print layout in current project" );
2261 return QStringList()
2268 return QStringList()
2290 return QCoreApplication::translate(
"Processing",
"A print layout item parameter." );
2293 QString
name()
const override
2295 return QCoreApplication::translate(
"Processing",
"Print Layout Item" );
2298 QString
id()
const override
2300 return QStringLiteral(
"layoutitem" );
2305 return QStringLiteral(
"from qgis.core import QgsProcessingParameterLayoutItem" );
2310 return QStringLiteral(
"QgsProcessingParameterLayoutItem" );
2315 return QStringList() << QObject::tr(
"str: UUID of print layout item" )
2316 << QObject::tr(
"str: id of print layout item" )
2317 << QStringLiteral(
"QgsProperty" );
2322 return QStringList() << QObject::tr(
"UUID or item id of layout item" );
2327 return QStringList()
2334 return QStringList()
2356 return QCoreApplication::translate(
"Processing",
"A color parameter." );
2359 QString
name()
const override
2361 return QCoreApplication::translate(
"Processing",
"Color" );
2364 QString
id()
const override
2366 return QStringLiteral(
"color" );
2371 return QStringLiteral(
"from qgis.core import QgsProcessingParameterColor" );
2376 return QStringLiteral(
"QgsProcessingParameterColor" );
2381 return QStringList() << QObject::tr(
"str: string representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2382 << QStringLiteral(
"QColor" )
2383 << QStringLiteral(
"QgsProperty" );
2388 return QStringList() << QObject::tr(
"String representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2389 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2390 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2395 return QStringList()
2402 return QStringList()
2424 return QCoreApplication::translate(
"Processing",
"A coordinate operation parameter." );
2427 QString
name()
const override
2429 return QCoreApplication::translate(
"Processing",
"Coordinate Operation" );
2432 QString
id()
const override
2434 return QStringLiteral(
"coordinateoperation" );
2439 return QStringLiteral(
"from qgis.core import QgsProcessingParameterCoordinateOperation" );
2444 return QStringLiteral(
"QgsProcessingParameterCoordinateOperation" );
2449 return QStringList() << QObject::tr(
"str: string representation of a Proj coordinate operation" );
2454 return QStringList() << QObject::tr(
"String representation of Proj coordinate operation" );
2459 return QStringList()
2466 return QStringList()
2488 return QCoreApplication::translate(
"Processing",
"A map theme parameter." );
2491 QString
name()
const override
2493 return QCoreApplication::translate(
"Processing",
"Map Theme" );
2496 QString
id()
const override
2498 return QStringLiteral(
"maptheme" );
2503 return QStringLiteral(
"from qgis.core import QgsProcessingParameterMapTheme" );
2508 return QStringLiteral(
"QgsProcessingParameterMapTheme" );
2513 return QStringList() << QObject::tr(
"str: name of an existing map theme" )
2514 << QStringLiteral(
"QgsProperty" );
2519 return QStringList() << QObject::tr(
"Name of an existing map theme" );
2524 return QStringList()
2531 return QStringList()
2553 return QCoreApplication::translate(
"Processing",
"A datetime parameter, including datetime, date or time values." );
2556 QString
name()
const override
2558 return QCoreApplication::translate(
"Processing",
"Datetime" );
2561 QString
id()
const override
2563 return QStringLiteral(
"datetime" );
2568 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDateTime" );
2573 return QStringLiteral(
"QgsProcessingParameterDateTime" );
2578 return QStringList() << QStringLiteral(
"str" )
2579 << QStringLiteral(
"QDateTime" )
2580 << QStringLiteral(
"QDate" )
2581 << QStringLiteral(
"QTime" )
2582 << QStringLiteral(
"QgsProperty" );
2587 return QStringList() << QObject::tr(
"A datetime value in ISO format" )
2588 << QObject::tr(
"field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2589 << QObject::tr(
"expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2594 return QStringList()
2601 return QStringList()
2623 return QCoreApplication::translate(
"Processing",
"A connection name parameter, for registered database connections." );
2626 QString
name()
const override
2628 return QCoreApplication::translate(
"Processing",
"Connection Name" );
2631 QString
id()
const override
2633 return QStringLiteral(
"providerconnection" );
2638 return QStringLiteral(
"from qgis.core import QgsProcessingParameterProviderConnection" );
2643 return QStringLiteral(
"QgsProcessingParameterProviderConnection" );
2648 return QStringList() << QStringLiteral(
"str" )
2649 << QStringLiteral(
"QgsProperty" );
2654 return QStringList() << QObject::tr(
"Name of registered database connection" );
2659 return QStringList()
2667 return QStringList()
2689 return QCoreApplication::translate(
"Processing",
"A database schema parameter." );
2692 QString
name()
const override
2694 return QCoreApplication::translate(
"Processing",
"Database Schema" );
2697 QString
id()
const override
2699 return QStringLiteral(
"databaseschema" );
2704 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDatabaseSchema" );
2709 return QStringLiteral(
"QgsProcessingParameterDatabaseSchema" );
2714 return QStringList() << QStringLiteral(
"str" )
2715 << QStringLiteral(
"QgsProperty" );
2720 return QStringList() << QObject::tr(
"Name of existing database schema" );
2725 return QStringList()
2733 return QStringList()
2755 return QCoreApplication::translate(
"Processing",
"A database table parameter." );
2758 QString
name()
const override
2760 return QCoreApplication::translate(
"Processing",
"Database Table" );
2763 QString
id()
const override
2765 return QStringLiteral(
"databasetable" );
2770 return QStringLiteral(
"from qgis.core import QgsProcessingParameterDatabaseTable" );
2775 return QStringLiteral(
"QgsProcessingParameterDatabaseTable" );
2780 return QStringList() << QStringLiteral(
"str" )
2781 << QStringLiteral(
"QgsProperty" );
2786 return QStringList() << QObject::tr(
"Name of existing database table" );
2791 return QStringList()
2799 return QStringList()
2821 return QCoreApplication::translate(
"Processing",
"A point cloud layer parameter." );
2824 QString
name()
const override
2826 return QCoreApplication::translate(
"Processing",
"Point Cloud Layer" );
2831 return QStringLiteral(
"from qgis.core import QgsProcessingParameterPointCloudLayer" );
2836 return QStringLiteral(
"QgsProcessingParameterPointCloudLayer" );
2839 QString
id()
const override
2841 return QStringLiteral(
"pointcloud" );
2846 return QStringList() << QObject::tr(
"str: layer ID" )
2847 << QObject::tr(
"str: layer name" )
2848 << QObject::tr(
"str: layer source" )
2849 << QStringLiteral(
"QgsPointCloudLayer" );
2854 return QStringList() << QObject::tr(
"Path to a point cloud layer" );
2859 return QStringList()
2868 return QStringList()
2893 return QCoreApplication::translate(
"Processing",
"An annotation layer parameter." );
2896 QString
name()
const override
2898 return QCoreApplication::translate(
"Processing",
"Annotation Layer" );
2903 return QStringLiteral(
"from qgis.core import QgsProcessingParameterAnnotationLayer" );
2908 return QStringLiteral(
"QgsProcessingParameterAnnotationLayer" );
2911 QString
id()
const override
2913 return QStringLiteral(
"annotation" );
2918 return QStringList() << QObject::tr(
"str: layer ID" )
2919 << QObject::tr(
"str: layer name" )
2920 << QObject::tr(
"\"main\": main annotation layer for a project" )
2921 << QStringLiteral(
"QgsAnnotationLayer" );
2926 return QStringList() << QObject::tr(
"Layer ID for an annotation layer, or \"main\" for the main annotation layer in a project." );
2931 return QStringList()
2940 return QStringList()
2964 return QCoreApplication::translate(
"Processing",
"A point cloud layer destination parameter." );
2967 QString
name()
const override
2969 return QCoreApplication::translate(
"Processing",
"Point Cloud Destination" );
2972 QString
id()
const override
2974 return QStringLiteral(
"pointCloudDestination" );
2979 return QStringLiteral(
"from qgis.core import QgsProcessingParameterPointCloudDestination" );
2984 return QStringLiteral(
"QgsProcessingParameterPointCloudDestination" );
2996 return QStringList() << QStringLiteral(
"str" )
2997 << QStringLiteral(
"QgsProperty" )
2998 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
3003 return QStringList() << QObject::tr(
"Path for new point cloud layer" );
3023 return QCoreApplication::translate(
"Processing",
"A point cloud attribute parameter, for selecting an attribute from a point cloud source." );
3026 QString
name()
const override
3028 return QCoreApplication::translate(
"Processing",
"Point Cloud Attribute" );
3031 QString
id()
const override
3033 return QStringLiteral(
"attribute" );
3038 return QStringLiteral(
"from qgis.core import QgsProcessingParameterPointCloudAttribute" );
3043 return QStringLiteral(
"QgsProcessingParameterPointCloudAttribute" );
3048 return QStringList() << QStringLiteral(
"str" )
3049 << QStringLiteral(
"QgsProperty" );
3054 return QStringList() << QObject::tr(
"The name of an attribute" )
3055 << QObject::tr(
"; delimited list of attribute names" );
3060 return QStringList()
3067 return QStringList()
3090 return QCoreApplication::translate(
"Processing",
"A vector tiles layer destination parameter." );
3093 QString
name()
const override
3095 return QCoreApplication::translate(
"Processing",
"Vector Tile Destination" );
3098 QString
id()
const override
3100 return QStringLiteral(
"vectorTileDestination" );
3105 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVectorTileDestination" );
3110 return QStringLiteral(
"QgsProcessingParameterVectorTileDestination" );
3122 return QStringList() << QStringLiteral(
"str" )
3123 << QStringLiteral(
"QgsProperty" )
3124 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
3129 return QStringList() << QObject::tr(
"Path for new vector tile layer" );
@ 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 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.