Thursday 21 December 2017

qgis - Creating leader lines for moved labels


With a lot of help from gis.stackexchange.com I've created leader lines for point symbols. The lines are based on a geometry generator symbology:


Shortening line geometry using expression dialog in QGIS?


enter image description here


Now, I want to implement leader lines for moved labels. It's very importent to me, that the lines start at the center of the labels and end at the point coordinates (or vice versa).



-- Geometry generator:
make_line(
make_point(label_x, label_y),
$geometry)

Once again, the lines are covered by the labels:


enter image description here


enter image description here


Is there a way to address the label boxes and shorten the leader lines? I suppose this is quite a tricky question :/




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...