Class: QgsMarkerLineSymbolLayer¶
Line symbol layer type which draws repeating marker symbols along a line feature.
Class Hierarchy¶
Base classes¶
Base class for templated line symbols, e.g. line symbols which draw markers or hash lines at intervals along the line feature. |
|
Abstract base class for line symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Shall the marker be rotated. |
|
Shall the marker be rotated. |
Static Methods
Creates a new |
|
Creates a new |
- class qgis.core.QgsMarkerLineSymbolLayer[source]¶
Bases:
QgsTemplatedLineSymbolLayerBase
- __init__(rotateMarker: bool = DEFAULT_MARKERLINE_ROTATE, interval: float = DEFAULT_MARKERLINE_INTERVAL)
Constructor for QgsMarkerLineSymbolLayer. Creates a marker line with a default marker symbol, placed at the specified
interval
(in millimeters).The
rotateMarker
argument specifies whether individual marker symbols should be rotated to match the line segment alignment.- Parameters:
rotateMarker (bool = DEFAULT_MARKERLINE_ROTATE)
interval (float = DEFAULT_MARKERLINE_INTERVAL)
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None [source]¶
Creates a new
QgsMarkerLineSymbolLayer
, using the settings serialized in theproperties
map (corresponding to the output fromQgsMarkerLineSymbolLayer.properties()
).- Parameters:
properties (Dict[str, Any] = {})
- Return type:
Optional[QgsSymbolLayer]
- static createFromSld(element: QDomElement) QgsSymbolLayer | None [source]¶
Creates a new
QgsMarkerLineSymbolLayer
from an SLD XML DOMelement
.- Parameters:
element (QDomElement)
- Return type:
Optional[QgsSymbolLayer]