[QGIS-Developer] QGIS 3, pygis 101 Styling QgsPointClusterRenderer
wambacher at posteo.de
wambacher at posteo.de
Thu Mar 7 06:03:01 PST 2019
Hi,
using QgsPointClusterRenderer() as renderer is working fine, but i can't
style it.
The old renderers are having arguments like "symbol"
symbol = QgsSymbol.defaultSymbol(pgLayer.geometryType())
symbol.setColor(QtGui.QColor.fromRgb(255,0,0))
symbol.setSize(4)
pgRenderer = pgLayer.setRenderer(QgsSingleSymbolRenderer(symbol))
and that is still running.
But the new renderers like PointCluster don't. There must be another way
(methods?) to configure that.
pgRenderer2 = pgLayer.setRenderer(QgsPointClusterRenderer())
pgRenderer2.setClusterSymbol(symbol) # gives errors.
Searched for hours but can't solve that.
regards
walter
--
My projects:
Admin Boundaries of the World <https://wambachers-osm.website/boundaries>
Missing Boundaries
<https://wambachers-osm.website/index.php/projekte/internationale-administrative-grenzen/missing-boundaries>
Emergency Map <https://wambachers-osm.website/emergency>
Postal Code Map (Germany only) <https://wambachers-osm.website/plz>
Fools (QA for zipcodes in Germany) <https://wambachers-osm.website/fools>
Postcode Boundaries of Germany <https://wambachers-osm.website/pcoundaries>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190307/7f0edb69/attachment.html>
More information about the QGIS-Developer
mailing list