Class: QgsPointPatternFillSymbolLayer

A fill symbol layer which fills polygon shapes with repeating marker symbols.

Class Hierarchy

Inheritance diagram of qgis.core.QgsPointPatternFillSymbolLayer

Base classes

QgsImageFillSymbolLayer

Base class for fill symbol layers which fill polygons with a repeated image.

QgsFillSymbolLayer

Abstract base class for fill symbol layers.

QgsSymbolLayer

Abstract base class for symbol layers.

Methods

clipMode

Returns the marker clipping mode, which defines how markers are clipped at the edges of shapes.

displacementX

Returns the horizontal displacement for odd numbered rows in the pattern.

displacementXMapUnitScale

Returns the map unit scale for the horizontal displacement between odd numbered rows in the pattern.

displacementXUnit

Returns the units for the horizontal displacement between rows in the pattern.

displacementY

Returns the vertical displacement for odd numbered columns in the pattern.

displacementYMapUnitScale

Returns the map unit scale for the vertical displacement between odd numbered columns in the pattern.

displacementYUnit

Returns the units for the vertical displacement between rows in the pattern.

distanceX

Returns the horizontal distance between rendered markers in the fill.

distanceXMapUnitScale

Returns the map unit scale for the horizontal distance between points in the pattern.

distanceXUnit

Returns the units for the horizontal distance between points in the pattern.

distanceY

Returns the vertical distance between rendered markers in the fill.

distanceYMapUnitScale

Returns the map unit scale for the vertical distance between points in the pattern.

distanceYUnit

Returns the units for the vertical distance between points in the pattern.

maximumRandomDeviationX

Returns the maximum horizontal random deviation of points in the pattern.

maximumRandomDeviationY

Returns the maximum vertical random deviation of points in the pattern.

offsetX

Returns the horizontal offset values for points in the pattern.

offsetXMapUnitScale

Returns the unit scale for the horizontal offset for rows in the pattern.

offsetXUnit

Returns the units for the horizontal offset for rows in the pattern.

offsetY

Returns the vertical offset values for points in the pattern.

offsetYMapUnitScale

Returns the unit scale for the vertical offset between rows in the pattern.

offsetYUnit

Returns the units for the vertical offset for rows in the pattern.

randomDeviationXMapUnitScale

Returns the unit scale for the horizontal random deviation of points in the pattern.

randomDeviationXUnit

Returns the units for the horizontal random deviation of points in the pattern.

randomDeviationYMapUnitScale

Returns the unit scale for the vertical random deviation of points in the pattern.

randomDeviationYUnit

Returns the units for the vertical random deviation of points in the pattern.

seed

Returns the random number seed to use when randomly shifting points, or 0 if a truly random sequence will be used (causing points to appear in different locations with every map refresh).

setClipMode

Sets the marker clipping mode, which defines how markers are clipped at the edges of shapes.

setDisplacementX

Sets the horizontal displacement for odd numbered rows in the pattern.

setDisplacementXMapUnitScale

Sets the map unit scale for the horizontal displacement between odd numbered rows in the pattern.

setDisplacementXUnit

Sets the units for the horizontal displacement between rows in the pattern.

setDisplacementY

Sets the vertical displacement for odd numbered columns in the pattern.

setDisplacementYMapUnitScale

Sets the map unit scale for the vertical displacement between odd numbered columns in the pattern.

setDisplacementYUnit

Sets the units for the vertical displacement between rows in the pattern.

setDistanceX

Sets the horizontal distance between rendered markers in the fill.

setDistanceXMapUnitScale

Sets the map unit scale for the horizontal distance between points in the pattern.

setDistanceXUnit

Sets the unit for the horizontal distance between points in the pattern.

setDistanceY

Sets the vertical distance between rendered markers in the fill.

setDistanceYMapUnitScale

Sets the map unit scale for the vertical distance between points in the pattern.

setDistanceYUnit

Sets the unit for the vertical distance between points in the pattern.

setMaximumRandomDeviationX

Sets the maximum horizontal random deviation of points in the pattern.

setMaximumRandomDeviationY

Sets the maximum vertical random deviation of points in the pattern.

setOffsetX

Sets the horizontal offset values for points in the pattern.

setOffsetXMapUnitScale

Sets the unit scale for the horizontal offset for rows in the pattern.

setOffsetXUnit

Sets the units for the horizontal offset between rows in the pattern.

setOffsetY

Sets the vertical offset values for points in the pattern.

setOffsetYMapUnitScale

Sets the unit scale for the vertical offset for rows in the pattern.

setOffsetYUnit

Sets the units for the vertical offset for rows in the pattern.

setRandomDeviationXMapUnitScale

Sets the unit scale for the horizontal random deviation of points in the pattern.

setRandomDeviationXUnit

Sets the unit for the horizontal random deviation of points in the pattern.

setRandomDeviationYMapUnitScale

Sets the unit scale for the vertical random deviation of points in the pattern.

setRandomDeviationYUnit

Sets the unit for the vertical random deviation of points in the pattern.

setSeed

Sets the random number seed to use when randomly shifting points, or 0 if a truly random sequence will be used on every rendering (causing points to appear in different locations with every map refresh).

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsPointPatternFillSymbolLayer. See the FAQ for more details.

applyBrushTransformFromContext

applyDataDefinedSettings

Static Methods

create

Creates a new QgsPointPatternFillSymbolLayer using the specified properties map containing symbol properties (see properties()).

createFromSld

class qgis.core.QgsPointPatternFillSymbolLayer[source]

Bases: QgsImageFillSymbolLayer

virtual applyBrushTransformFromContext()
virtual applyDataDefinedSettings(self, context: QgsSymbolRenderContext)[source]
Parameters:

context (QgsSymbolRenderContext)

clipMode(self) Qgis.MarkerClipMode[source]

Returns the marker clipping mode, which defines how markers are clipped at the edges of shapes.

See also

setClipMode()

Added in version 3.24.

Return type:

Qgis.MarkerClipMode

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

Creates a new QgsPointPatternFillSymbolLayer using the specified properties map containing symbol properties (see properties()).

Caller takes ownership of the returned symbol layer.

Parameters:

properties (Dict[str, Any] = {})

Return type:

Optional[QgsSymbolLayer]

static createFromSld(element: QDomElement) QgsSymbolLayer | None[source]
Parameters:

element (QDomElement)

Return type:

Optional[QgsSymbolLayer]

displacementX(self) float[source]

Returns the horizontal displacement for odd numbered rows in the pattern.

Units are retrieved via displacementXUnit().

Return type:

float

displacementXMapUnitScale(self) QgsMapUnitScale

Returns the map unit scale for the horizontal displacement between odd numbered rows in the pattern.

See also

displacementX()

Return type:

QgsMapUnitScale

displacementXUnit(self) Qgis.RenderUnit[source]

Returns the units for the horizontal displacement between rows in the pattern.

Return type:

Qgis.RenderUnit

displacementY(self) float[source]

Returns the vertical displacement for odd numbered columns in the pattern.

Units are retrieved via displacementYUnit().

Return type:

float

displacementYMapUnitScale(self) QgsMapUnitScale

Returns the map unit scale for the vertical displacement between odd numbered columns in the pattern.

See also

displacementY()

Return type:

QgsMapUnitScale

displacementYUnit(self) Qgis.RenderUnit[source]

Returns the units for the vertical displacement between rows in the pattern.

Return type:

Qgis.RenderUnit

distanceX(self) float[source]

Returns the horizontal distance between rendered markers in the fill.

Units are retrieved via distanceXUnit().

See also

setDistanceX()

See also

distanceXUnit()

Return type:

float

distanceXMapUnitScale(self) QgsMapUnitScale

Returns the map unit scale for the horizontal distance between points in the pattern.

See also

distanceX()

Return type:

QgsMapUnitScale

distanceXUnit(self) Qgis.RenderUnit[source]

Returns the units for the horizontal distance between points in the pattern.

See also

distanceYUnit()

Return type:

Qgis.RenderUnit

distanceY(self) float[source]

Returns the vertical distance between rendered markers in the fill.

Units are retrieved via distanceYUnit().

See also

setDistanceY()

See also

distanceYUnit()

Return type:

float

distanceYMapUnitScale(self) QgsMapUnitScale

Returns the map unit scale for the vertical distance between points in the pattern.

See also

distanceY()

Return type:

QgsMapUnitScale

distanceYUnit(self) Qgis.RenderUnit[source]

Returns the units for the vertical distance between points in the pattern.

See also

distanceXUnit()

Return type:

Qgis.RenderUnit

maximumRandomDeviationX(self) float[source]

Returns the maximum horizontal random deviation of points in the pattern.

Units are retrieved via maximumRandomDeviationXUnit().

Added in version 3.24.

Return type:

float

maximumRandomDeviationY(self) float[source]

Returns the maximum vertical random deviation of points in the pattern.

Units are retrieved via maximumRandomDeviationYUnit().

Added in version 3.24.

Return type:

float

offsetX(self) float[source]

Returns the horizontal offset values for points in the pattern.

See also

setOffsetX()

See also

offsetY()

Added in version 3.8.

Return type:

float

offsetXMapUnitScale(self) QgsMapUnitScale

Returns the unit scale for the horizontal offset for rows in the pattern.

Added in version 3.8.

Return type:

QgsMapUnitScale

offsetXUnit(self) Qgis.RenderUnit[source]

Returns the units for the horizontal offset for rows in the pattern.

See also

setOffsetXUnit()

See also

offsetYUnit()

Added in version 3.8.

Return type:

Qgis.RenderUnit

offsetY(self) float[source]

Returns the vertical offset values for points in the pattern.

See also

setOffsetY()

See also

offsetX()

Added in version 3.8.

Return type:

float

offsetYMapUnitScale(self) QgsMapUnitScale

Returns the unit scale for the vertical offset between rows in the pattern.

Added in version 3.8.

Return type:

QgsMapUnitScale

offsetYUnit(self) Qgis.RenderUnit[source]

Returns the units for the vertical offset for rows in the pattern.

See also

setOffsetYUnit()

See also

offsetXUnit()

Added in version 3.8.

Return type:

Qgis.RenderUnit

randomDeviationXMapUnitScale(self) QgsMapUnitScale

Returns the unit scale for the horizontal random deviation of points in the pattern.

Added in version 3.24.

Return type:

QgsMapUnitScale

randomDeviationXUnit(self) Qgis.RenderUnit[source]

Returns the units for the horizontal random deviation of points in the pattern.

Added in version 3.24.

Return type:

Qgis.RenderUnit

randomDeviationYMapUnitScale(self) QgsMapUnitScale

Returns the unit scale for the vertical random deviation of points in the pattern.

Added in version 3.24.

Return type:

QgsMapUnitScale

randomDeviationYUnit(self) Qgis.RenderUnit[source]

Returns the units for the vertical random deviation of points in the pattern.

Added in version 3.24.

Return type:

Qgis.RenderUnit

seed(self) int

Returns the random number seed to use when randomly shifting points, or 0 if a truly random sequence will be used (causing points to appear in different locations with every map refresh).

See also

setSeed()

Added in version 3.24.

Return type:

int

setClipMode(self, mode: Qgis.MarkerClipMode)[source]

Sets the marker clipping mode, which defines how markers are clipped at the edges of shapes.

See also

clipMode()

Added in version 3.24.

Parameters:

mode (Qgis.MarkerClipMode)

setDisplacementX(self, d: float)[source]

Sets the horizontal displacement for odd numbered rows in the pattern.

Units are set via setDisplacementXUnit().

See also

displacementX()

Parameters:

d (float)

setDisplacementXMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the map unit scale for the horizontal displacement between odd numbered rows in the pattern.

Parameters:

scale (QgsMapUnitScale)

setDisplacementXUnit(self, unit: Qgis.RenderUnit)[source]

Sets the units for the horizontal displacement between rows in the pattern.

Parameters:

unit (Qgis.RenderUnit) – displacement units

setDisplacementY(self, d: float)[source]

Sets the vertical displacement for odd numbered columns in the pattern.

Units are set via setDisplacementYUnit().

See also

displacementY()

Parameters:

d (float)

setDisplacementYMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the map unit scale for the vertical displacement between odd numbered columns in the pattern.

Parameters:

scale (QgsMapUnitScale)

setDisplacementYUnit(self, unit: Qgis.RenderUnit)[source]

Sets the units for the vertical displacement between rows in the pattern.

Parameters:

unit (Qgis.RenderUnit) – displacement units

setDistanceX(self, d: float)[source]

Sets the horizontal distance between rendered markers in the fill.

Units are set via setDistanceXUnit().

See also

distanceX()

Parameters:

d (float)

setDistanceXMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the map unit scale for the horizontal distance between points in the pattern.

See also

setDistanceX()

Parameters:

scale (QgsMapUnitScale)

setDistanceXUnit(self, unit: Qgis.RenderUnit)[source]

Sets the unit for the horizontal distance between points in the pattern.

Parameters:

unit (Qgis.RenderUnit) – distance units

See also

distanceXUnit()

setDistanceY(self, d: float)[source]

Sets the vertical distance between rendered markers in the fill.

Units are set via setDistanceYUnit().

See also

distanceY()

Parameters:

d (float)

setDistanceYMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the map unit scale for the vertical distance between points in the pattern.

See also

setDistanceY()

Parameters:

scale (QgsMapUnitScale)

setDistanceYUnit(self, unit: Qgis.RenderUnit)[source]

Sets the unit for the vertical distance between points in the pattern.

Parameters:

unit (Qgis.RenderUnit) – distance units

See also

distanceYUnit()

setMaximumRandomDeviationX(self, deviation: float)[source]

Sets the maximum horizontal random deviation of points in the pattern.

Units are set via setMaximumRandomDeviationXUnit().

Added in version 3.24.

Parameters:

deviation (float)

setMaximumRandomDeviationY(self, deviation: float)[source]

Sets the maximum vertical random deviation of points in the pattern.

Units are set via setMaximumRandomDeviationYUnit().

Added in version 3.24.

Parameters:

deviation (float)

setOffsetX(self, offset: float)[source]

Sets the horizontal offset values for points in the pattern.

Parameters:

offset (float) – offset value

See also

offsetX()

See also

setOffsetY()

Added in version 3.8.

setOffsetXMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the unit scale for the horizontal offset for rows in the pattern.

Parameters:

scale (QgsMapUnitScale) – offset unit scale

Added in version 3.8.

setOffsetXUnit(self, unit: Qgis.RenderUnit)[source]

Sets the units for the horizontal offset between rows in the pattern.

Parameters:

unit (Qgis.RenderUnit) – offset units

See also

offsetXUnit()

See also

setOffsetYUnit()

Added in version 3.8.

setOffsetY(self, offset: float)[source]

Sets the vertical offset values for points in the pattern.

Parameters:

offset (float) – offset value

See also

offsetY()

See also

setOffsetX()

Added in version 3.8.

setOffsetYMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the unit scale for the vertical offset for rows in the pattern.

Parameters:

scale (QgsMapUnitScale) – offset unit scale

Added in version 3.8.

setOffsetYUnit(self, unit: Qgis.RenderUnit)[source]

Sets the units for the vertical offset for rows in the pattern.

Parameters:

unit (Qgis.RenderUnit) – offset units

See also

offsetYUnit()

See also

setOffsetXUnit()

Added in version 3.8.

setRandomDeviationXMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the unit scale for the horizontal random deviation of points in the pattern.

Added in version 3.24.

Parameters:

scale (QgsMapUnitScale)

setRandomDeviationXUnit(self, unit: Qgis.RenderUnit)[source]

Sets the unit for the horizontal random deviation of points in the pattern.

Added in version 3.24.

Parameters:

unit (Qgis.RenderUnit)

setRandomDeviationYMapUnitScale(self, scale: QgsMapUnitScale)[source]

Sets the unit scale for the vertical random deviation of points in the pattern.

Added in version 3.24.

Parameters:

scale (QgsMapUnitScale)

setRandomDeviationYUnit(self, unit: Qgis.RenderUnit)[source]

Sets the unit for the vertical random deviation of points in the pattern.

Added in version 3.24.

Parameters:

unit (Qgis.RenderUnit)

setSeed(self, seed: int)[source]

Sets the random number seed to use when randomly shifting points, or 0 if a truly random sequence will be used on every rendering (causing points to appear in different locations with every map refresh).

See also

seed()

Added in version 3.24.

Parameters:

seed (int)