[Qgis-user] Use extend of label background in python

Fuenfer-Koenigstein.Benjamin2 at swm.de Fuenfer-Koenigstein.Benjamin2 at swm.de
Mon Aug 28 05:42:42 PDT 2017


Hi all,



in QGIS, there is the possibility to draw a rectangle around a label text with "Labels -> Background -> Shape: Rectangle; Size type: buffer". This way, the rectangle fits to text extend.



Does onyone know a way to use the size or the corner coordinates of this buffer rectangle in a python function? Would be very helpful to create leader lines from the object to the nearest corner of the rectangle.



Best regards



Benjamin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20170828/6703f832/attachment.html>


More information about the Qgis-user mailing list