QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSPROCESSINGPARAMETERVECTORTILEWRITERLAYERS_H
17 #define QGSPROCESSINGPARAMETERVECTORTILEWRITERLAYERS_H
52 QString
type()
const override;
58 static QString
typeName() {
return QStringLiteral(
"vectortilewriterlayers" ); }
61 static QList<QgsVectorTileWriter::Layer> parameterAsLayers(
const QVariant &layersVariant,
QgsProcessingContext &context );
87 return QCoreApplication::translate(
"Processing",
"An input allowing selection of multiple layers for export in vector tiles." );
90 QString
name()
const override
92 return QCoreApplication::translate(
"Processing",
"Vector Tile Writer Layers" );
95 QString
id()
const override
102 return QStringLiteral(
"from qgis.core import QgsProcessingParameterVectorTileWriterLayers" );
107 return QStringLiteral(
"QgsProcessingParameterVectorTileWriterLayers" );
112 return QStringList() << QObject::tr(
"list[dict]: list of input layers as dictionaries, see QgsProcessingParameterVectorTileWriterLayers docs" );
117 #endif // QGSPROCESSINGPARAMETERVECTORTILEWRITERLAYERS_H
QString className() const override
Returns the corresponding class name for the parameter type.
virtual QString valueAsPythonString(const QVariant &value, QgsProcessingContext &context) const
Returns a string version of the parameter input value, which is suitable for use as an input paramete...
QString pythonImportString() const override
Returns a valid Python import string for importing the corresponding parameter type,...
Base class for the definition of processing parameters.
Makes metadata of processing parameters available.
@ PythonQgsProcessingAlgorithmSubclass
Full Python QgsProcessingAlgorithm subclass.
Contains information about the context in which a processing algorithm is executed.
QString id() const override
A static id for this type which will be used for storing this parameter type.
QString name() const override
A human readable and translatable short name for this parameter type.
static QString typeName()
Returns the type name for the parameter class.
A parameter for processing algorithms that need a list of input vector layers for writing of vector t...
QgsProcessingParameterDefinition * create(const QString &name) const override
Creates a new parameter of this type.
QString description() const override
A human readable and translatable description for this parameter type.
Configuration of a single input vector layer to be included in the output.
Parameter type definition for QgsProcessingParameterVectorTileWriterLayers.
virtual QString asPythonString(QgsProcessing::PythonOutputType outputType=QgsProcessing::PythonQgsProcessingAlgorithmSubclass) const
Returns the parameter definition as a Python command which can be used within a Python Processing scr...
virtual QgsProcessingParameterDefinition * clone() const =0
Creates a clone of the parameter definition.
virtual QString type() const =0
Unique parameter type name.
PythonOutputType
Available Python output types.
virtual bool checkValueIsAcceptable(const QVariant &input, QgsProcessingContext *context=nullptr) const
Checks whether the specified input value is acceptable for the parameter.
QStringList acceptedPythonTypes() const override
Returns a list of the Python data types accepted as values for the parameter.