Class: QgsPointClusterRenderer

class qgis.core.QgsPointClusterRenderer

Bases: qgis._core.QgsPointDistanceRenderer

A renderer that automatically clusters points with the same geographic position.

New in version 3.0: Enums

Methods

accept

clone

clusterSymbol

Returns the symbol used for rendering clustered groups (but not ownership of the symbol).

convertFromRenderer

Creates a QgsPointClusterRenderer from an existing renderer.

convertSymbolRotation

convertSymbolSizeScale

copyRendererData

create

Creates a renderer from XML element

drawGroup

drawLabels

renderFeatureWithSymbol

renderVertexMarker

renderVertexMarkerPolygon

renderVertexMarkerPolyline

save

setClusterSymbol

Sets the symbol for rendering clustered groups.

startRender

stopRender

usedAttributes

Signals

Attributes

accept(self, visitor: QgsStyleEntityVisitorInterface) → bool
clone(self) → QgsPointClusterRenderer
clusterSymbol(self) → QgsMarkerSymbol

Returns the symbol used for rendering clustered groups (but not ownership of the symbol).

convertFromRenderer(renderer: QgsFeatureRenderer) → QgsPointClusterRenderer

Creates a QgsPointClusterRenderer from an existing renderer.

Returns

a new renderer if the conversion was possible, otherwise None.

convertSymbolRotation()
convertSymbolSizeScale()
copyRendererData()
create(symbologyElem: QDomElement, context: QgsReadWriteContext) → QgsFeatureRenderer

Creates a renderer from XML element

drawGroup()
drawLabels()
renderFeatureWithSymbol()
renderVertexMarker()
renderVertexMarkerPolygon()
renderVertexMarkerPolyline()
save(self, doc: QDomDocument, context: QgsReadWriteContext) → QDomElement
setClusterSymbol(self, symbol: QgsMarkerSymbol)

Sets the symbol for rendering clustered groups.

Parameters

symbol – new cluster symbol. Ownership is transferred to the renderer.

See also

clusterSymbol()

startRender(self, context: QgsRenderContext, fields: QgsFields)
stopRender(self, context: QgsRenderContext)
usedAttributes(self, context: QgsRenderContext) → Set[str]