[Qgis-user] adding offset to QgsSvgMarkerSymbolLayer using pyqgis

Bernhard Seckinger bernhard.seckinger at bueffee.de
Thu Jan 25 02:27:01 PST 2024


>But there is markerOffset2 and/or markerOffsetWithWidthAndHeight, maybe this
>does what you want?
>
>https://qgis.org/pyqgis/master/core/QgsSvgMarkerSymbolLayer.html

This needs a QgsSymbolRenderContext as Parameter. I'm not sure, where I could
get this from.

Anyway, this looks like lookup functions that return the offset, quite the
opposite of what I'd like to do.

Anyway, this brought me to the setParameters-method. Seems, like this might
be, what I need. At least, when I query this with properties() I get
some offset.

Unfortunately I still need QgsSymbolRenderContext to use this method...

Thanks, Bernhard

--
Bernhard Seckinger <bernhard.seckinger at bueffee.de>


More information about the QGIS-User mailing list