Class: QgsMarkerLineSymbolLayer

Line symbol layer type which draws repeating marker symbols along a line feature.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsMarkerLineSymbolLayer

Base classes

QgsTemplatedLineSymbolLayerBase

Base class for templated line symbols, e.g. line symbols which draw markers or hash lines at intervals along the line feature.

QgsLineSymbolLayer

Abstract base class for line symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Constructor

__init__

Methods

rotateMarker

Shall the marker be rotated.

setRotateMarker

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.

clone

subSymbol

Static Methods

create

Creates a new QgsMarkerLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsMarkerLineSymbolLayer.properties() ).

createFromSld

Creates a new QgsMarkerLineSymbolLayer from an SLD XML DOM element.

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)

virtual clone(self) → QgsMarkerLineSymbolLayer | None[source]
Return type:

QgsMarkerLineSymbolLayer|None

static create(properties: dict[str | None, Any] = {}) → QgsSymbolLayer | None

Creates a new QgsMarkerLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsMarkerLineSymbolLayer.properties() ).

Parameters:

properties (dict[str|None, Any] = {})

Return type:

QgsSymbolLayer|None

static createFromSld(element: QDomElement) → QgsSymbolLayer | None

Creates a new QgsMarkerLineSymbolLayer from an SLD XML DOM element.

Parameters:

element (QDomElement)

Return type:

QgsSymbolLayer|None

rotateMarker(self) → bool[source]

Shall the marker be rotated.

Return type:

bool

Returns:

True if the marker should be rotated.

Deprecated since version 3.40: Use rotateSymbols() instead.

setRotateMarker(self, rotate: bool)[source]

Shall the marker be rotated.

Deprecated since version 3.40: Use setRotateSymbols() instead.

Parameters:

rotate (bool)

virtual subSymbol(self) → QgsSymbol | None[source]
Return type:

QgsSymbol|None