QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
QgsProcessing Class Reference

Contains enumerations and other constants for use in processing algorithms and parameters. More...

#include <qgsprocessing.h>

Public Types

enum  PythonOutputType { PythonQgsProcessingAlgorithmSubclass }
 Available Python output types. More...
 
enum  SourceType {
  TypeMapLayer = -2 , TypeVectorAnyGeometry = -1 , TypeVectorPoint = 0 , TypeVectorLine = 1 ,
  TypeVectorPolygon = 2 , TypeRaster = 3 , TypeFile = 4 , TypeVector = 5 ,
  TypeMesh = 6 , TypePlugin = 7 , TypePointCloud = 8 , TypeAnnotation = 9
}
 Data source types enum. More...
 

Static Public Member Functions

static QString sourceTypeToString (SourceType type)
 Converts a source type to a string representation. More...
 

Static Public Attributes

static const QgsSettingsEntryIntegersettingsDefaultOutputRasterLayerExt = new QgsSettingsEntryInteger( QStringLiteral( "default-output-raster-layer-ext" ), sTreeConfiguration, -1 )
 Settings entry default output raster layer ext. More...
 
static const QgsSettingsEntryIntegersettingsDefaultOutputVectorLayerExt = new QgsSettingsEntryInteger( QStringLiteral( "default-output-vector-layer-ext" ), sTreeConfiguration, -1 )
 Settings entry default output vector layer ext. More...
 
static const QgsSettingsEntryBoolsettingsPreferFilenameAsLayerName = new QgsSettingsEntryBool( QStringLiteral( "prefer-filename-as-layer-name" ), sTreeConfiguration, true, QObject::tr( "Prefer filename as layer name" ) )
 Settings entry prefer filename as layer name. More...
 
static const QgsSettingsEntryStringsettingsTempPath = new QgsSettingsEntryString( QStringLiteral( "temp-path" ), sTreeConfiguration, QString() )
 Settings entry temp path. More...
 
static QgsSettingsTreeNodesTreeConfiguration = QgsSettingsTree::sTreeQgis->createChildNode( QStringLiteral( "configuration" ) )
 
static const QString TEMPORARY_OUTPUT = QStringLiteral( "TEMPORARY_OUTPUT" )
 Constant used to indicate that a Processing algorithm output should be a temporary layer/file. More...
 

Detailed Description

Contains enumerations and other constants for use in processing algorithms and parameters.

Since
QGIS 3.0

Definition at line 40 of file qgsprocessing.h.

Member Enumeration Documentation

◆ PythonOutputType

Available Python output types.

Enumerator
PythonQgsProcessingAlgorithmSubclass 

Full Python QgsProcessingAlgorithm subclass.

Definition at line 63 of file qgsprocessing.h.

◆ SourceType

Data source types enum.

Enumerator
TypeMapLayer 

Any map layer type (raster, vector, mesh, point cloud, annotation or plugin layer)

TypeVectorAnyGeometry 

Any vector layer with geometry.

TypeVectorPoint 

Vector point layers.

TypeVectorLine 

Vector line layers.

TypeVectorPolygon 

Vector polygon layers.

TypeRaster 

Raster layers.

TypeFile 

Files (i.e. non map layer sources, such as text files)

TypeVector 

Tables (i.e. vector layers with or without geometry). When used for a sink this indicates the sink has no geometry.

TypeMesh 

Mesh layers.

Since
QGIS 3.6
TypePlugin 

Plugin layers.

Since
QGIS 3.22
TypePointCloud 

Point cloud layers.

Since
QGIS 3.22
TypeAnnotation 

Annotation layers.

Since
QGIS 3.22

Definition at line 46 of file qgsprocessing.h.

Member Function Documentation

◆ sourceTypeToString()

static QString QgsProcessing::sourceTypeToString ( SourceType  type)
inlinestatic

Converts a source type to a string representation.

Since
QGIS 3.6

Definition at line 73 of file qgsprocessing.h.

Member Data Documentation

◆ settingsDefaultOutputRasterLayerExt

const QgsSettingsEntryInteger * QgsProcessing::settingsDefaultOutputRasterLayerExt = new QgsSettingsEntryInteger( QStringLiteral( "default-output-raster-layer-ext" ), sTreeConfiguration, -1 )
static

Settings entry default output raster layer ext.

Definition at line 122 of file qgsprocessing.h.

◆ settingsDefaultOutputVectorLayerExt

const QgsSettingsEntryInteger * QgsProcessing::settingsDefaultOutputVectorLayerExt = new QgsSettingsEntryInteger( QStringLiteral( "default-output-vector-layer-ext" ), sTreeConfiguration, -1 )
static

Settings entry default output vector layer ext.

Definition at line 120 of file qgsprocessing.h.

◆ settingsPreferFilenameAsLayerName

const QgsSettingsEntryBool * QgsProcessing::settingsPreferFilenameAsLayerName = new QgsSettingsEntryBool( QStringLiteral( "prefer-filename-as-layer-name" ), sTreeConfiguration, true, QObject::tr( "Prefer filename as layer name" ) )
static

Settings entry prefer filename as layer name.

Definition at line 116 of file qgsprocessing.h.

◆ settingsTempPath

const QgsSettingsEntryString * QgsProcessing::settingsTempPath = new QgsSettingsEntryString( QStringLiteral( "temp-path" ), sTreeConfiguration, QString() )
static

Settings entry temp path.

Definition at line 118 of file qgsprocessing.h.

◆ sTreeConfiguration

QgsSettingsTreeNode* QgsProcessing::sTreeConfiguration = QgsSettingsTree::sTreeQgis->createChildNode( QStringLiteral( "configuration" ) )
inlinestatic

Definition at line 113 of file qgsprocessing.h.

◆ TEMPORARY_OUTPUT

const QString QgsProcessing::TEMPORARY_OUTPUT = QStringLiteral( "TEMPORARY_OUTPUT" )
static

Constant used to indicate that a Processing algorithm output should be a temporary layer/file.

Since
QGIS 3.6

Definition at line 110 of file qgsprocessing.h.


The documentation for this class was generated from the following files: