Class: QgsProcessingParameterVectorTileWriterLayers¶
A parameter for Processing algorithms that need a list of input vector layers for writing of vector tiles.
This parameter provides Processing framework’s adapter for
QList<QgsVectorTileWriter.Layer>.
A valid value for this parameter is a list (QVariantList), where each item is a map (QVariantMap) in this form:
{
'layer': string or QgsMapLayer,
# key-value pairs below are optional
'layerName': string,
'filterExpression': string,
'minZoom': int,
'maxZoom': int
}
Static functions parametersAsLayers(),
variantMapAsLayer(), layerAsVariantMap() provide
conversion between QgsVectorTileWriter.Layer representation
and QVariant representation.
Added in version 3.14.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for the definition of processing parameters. |
Static Methods
Converts a single input layer to QVariant representation (a QVariantMap) |
|
Converts a QVariant value (a QVariantList) to a list of input layers |
|
Returns the type name for the parameter class. |
|
Converts a QVariant value (a QVariantMap) to a single input layer |
- class qgis.core.QgsProcessingParameterVectorTileWriterLayers[source]¶
Bases:
QgsProcessingParameterDefinition- __init__(name: str | None, description: str | None = '')
Constructor for QgsProcessingParameterVectorTileWriterLayers.
- Parameters:
name (Optional[str])
description (Optional[str] = '')
- __init__(a0: QgsProcessingParameterVectorTileWriterLayers)
- Parameters:
- static layerAsVariantMap(layer: QgsVectorTileWriter.Layer) dict[str, Any][source]¶
Converts a single input layer to QVariant representation (a QVariantMap)
- Parameters:
layer (QgsVectorTileWriter.Layer)
- Return type:
dict[str, Any]
- static parameterAsLayers(layersVariant: Any, context: QgsProcessingContext) list[QgsVectorTileWriter.Layer]¶
Converts a QVariant value (a QVariantList) to a list of input layers
- Parameters:
layersVariant (Any)
context (QgsProcessingContext)
- Return type:
- static variantMapAsLayer(layerVariantMap: dict[str, Any], context: QgsProcessingContext) QgsVectorTileWriter.Layer[source]¶
Converts a QVariant value (a QVariantMap) to a single input layer
- Parameters:
layerVariantMap (dict[str, Any])
context (QgsProcessingContext)
- Return type: