Feature request #16382

Add label functions in field calculator

Added by R. R. almost 7 years ago. Updated almost 7 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Field calculator
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:24291

Description

There should be a function in the field calculator that returns the hight/width of labels.

History

#1 Updated by R. R. almost 7 years ago

This would be quite helpful to create 'Geometry generator' based leader lines that are not covered by the labels:

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

See also:

http://gis.stackexchange.com/questions/232709/creating-leader-lines-for-moved-labels

#2 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

Also available in: Atom PDF