Class: QgsMarkerLineSymbolLayer¶
Line symbol layer type which draws repeating marker symbols along a line feature.
List of all members, including inherited members
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. |
Constructor
Methods
Shall the marker be rotated. |
|
Shall the marker be rotated. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsMarkerLineSymbolLayer. See the FAQ for more details.
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
rotateMarkerargument 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)
- virtual clone(self) QgsMarkerLineSymbolLayer | None[source]¶
- Return type:
- static create(properties: dict[str | None, Any] = {}) QgsSymbolLayer | None¶
Creates a new
QgsMarkerLineSymbolLayer, using the settings serialized in thepropertiesmap (corresponding to the output fromQgsMarkerLineSymbolLayer.properties()).- Parameters:
properties (dict[str|None, Any] = {})
- Return type:
QgsSymbolLayer|None
- static createFromSld(element: QDomElement) QgsSymbolLayer | None¶
Creates a new
QgsMarkerLineSymbolLayerfrom an SLD XML DOMelement.- Parameters:
element (QDomElement)
- Return type:
QgsSymbolLayer|None
- rotateMarker(self) bool[source]¶
Shall the marker be rotated.
- Return type:
bool
- Returns:
Trueif the marker should be rotated.
Deprecated since version 3.40: Use
rotateSymbols()instead.