Class: QgsSymbolLayerAbstractMetadata

class qgis.core.QgsSymbolLayerAbstractMetadata

Bases: sip.wrapper

Stores metadata about one symbol layer class.

Note

It’s necessary to implement createSymbolLayer() function. In C++ you can use QgsSymbolLayerMetadata convenience class.

Enums

Methods

createSymbolLayer

Create a symbol layer of this type given the map of properties.

createSymbolLayerFromSld

Create a symbol layer of this type given the map of properties.

createSymbolLayerWidget

Create widget for symbol layer of this type.

name

resolvePaths

Resolve paths in symbol layer’s properties (if there are any paths).

type

visibleName

Signals

Attributes

createSymbolLayer(self, map: Dict[str, str]) → QgsSymbolLayer

Create a symbol layer of this type given the map of properties.

createSymbolLayerFromSld(self, QDomElement) → QgsSymbolLayer

Create a symbol layer of this type given the map of properties.

createSymbolLayerWidget(self, QgsVectorLayer) → QgsSymbolLayerWidget

Create widget for symbol layer of this type. Can return None if there’s no GUI

name(self) → str
resolvePaths(self, properties: Dict[str, str], pathResolver: QgsPathResolver, saving: bool)

Resolve paths in symbol layer’s properties (if there are any paths). When saving is True, paths are converted from absolute to relative, when saving is False, paths are converted from relative to absolute. This ensures that paths in project files can be relative, but in symbol layer instances the paths are always absolute

New in version 3.0.

type(self) → QgsSymbol.SymbolType
visibleName(self) → str