73 static QList< QgsRasterLayer * > compatibleRasterLayers(
QgsProject *project,
bool sort =
true );
95 static QList< QgsVectorLayer * > compatibleVectorLayers(
QgsProject *project,
96 const QList< int > &sourceTypes = QList< int >(),
117 static QList<QgsMeshLayer *> compatibleMeshLayers(
QgsProject *project,
bool sort =
true );
137 static QList<QgsPluginLayer *> compatiblePluginLayers(
QgsProject *project,
bool sort =
true );
157 static QList<QgsPointCloudLayer *> compatiblePointCloudLayers(
QgsProject *project,
bool sort =
true );
177 static QList<QgsAnnotationLayer *> compatibleAnnotationLayers(
QgsProject *project,
bool sort =
true );
197 static QList<QgsVectorTileLayer *> compatibleVectorTileLayers(
QgsProject *project,
bool sort =
true );
217 static QList<QgsTiledSceneLayer *> compatibleTiledSceneLayers(
QgsProject *project,
bool sort =
true );
228 static QList< QgsMapLayer * > compatibleLayers(
QgsProject *project,
bool sort =
true );
236 static QString encodeProviderKeyAndUri(
const QString &providerKey,
const QString &uri );
249 static bool decodeProviderKeyAndUri(
const QString &
string, QString &providerKey
SIP_OUT, QString &uri
SIP_OUT );
309 static QString normalizeLayerSource( const QString &source )
SIP_HOLDGIL;
326 static QString variantToPythonLiteral( const QVariant &value );
333 static QString stringToPythonLiteral( const QString &
string )
SIP_HOLDGIL;
358 const QVariantMap &createOptions = QVariantMap(),
359 const QStringList &datasourceOptions = QStringList(),
360 const QStringList &layerOptions = QStringList(),
361 QgsFeatureSink::SinkFlags sinkFlags = QgsFeatureSink::SinkFlags(),
408 static QVariant generateIteratingDestination( const QVariant &input, const QVariant &
id,
QgsProcessingContext &context );
422 static QString generateTempFilename( const QString &basename, const
QgsProcessingContext *context =
nullptr );
452 static QString convertToCompatibleFormat( const
QgsVectorLayer *layer,
453 bool selectedFeaturesOnly,
454 const QString &baseName,
455 const QStringList &compatibleFormats,
456 const QString &preferredFormat,
459 long long featureLimit = -1,
460 const QString &filterExpression = QString() );
496 static QString convertToCompatibleFormatAndLayerName( const
QgsVectorLayer *layer,
497 bool selectedFeaturesOnly,
498 const QString &baseName,
499 const QStringList &compatibleFormats,
500 const QString &preferredFormat,
504 long long featureLimit = -1,
505 const QString &filterExpression = QString() );
524 static QList<
int> fieldNamesToIndices( const QStringList &fieldNames, const
QgsFields &fields )
SIP_HOLDGIL;
544 static QString defaultVectorExtension();
558 static QString defaultRasterExtension();
571 static QString defaultPointCloudExtension();
584 static QString defaultVectorTileExtension();
592 static QVariantMap removePointerValuesFromMap( const QVariantMap &map );
601 static QVariantMap preprocessQgisProcessParameters( const QVariantMap ¶meters,
bool &ok, QString &error );
611 static QString resolveDefaultEncoding( const QString &defaultEncoding = "System" );
622 const QList<
int > &sourceTypes = QList<
int >() );
636 template< typename T> static QList< T * > compatibleMapLayers(
QgsProject *project,
bool sort = true );
670 Q_DECL_DEPRECATED static
QgsMapLayer *loadMapLayerFromString( const QString &
string, LayerHint typeHint = LayerHint::UnknownType )
SIP_DEPRECATED ;
672 static
void parseDestinationString( QString &destination, QString &providerKey, QString &uri, QString &layerName, QString &format, QMap<QString, QVariant> &options,
bool &useWriter, QString &extension );
674 friend class TestQgsProcessing;
Single scope for storing variables and functions for use within a QgsExpressionContext.
Contains information about the context in which a processing algorithm is executed.