Feature request #2991

Patch for data defined label position in new labeling

Added by Marco Hugentobler over 13 years ago. Updated over 13 years ago.

Status:Closed
Priority:Low
Assignee:Martin Dobias
Category:Vectors
Pull Request or Patch supplied: Resolution:fixed
Easy fix?:No Copied to github as #:13051

Description

The following patch adds data defined label position for the new labeling engine. Martin, could you review it?
And maybe it is a good time to synchronize the pal changes (also the curved labeling) with the main pal library

Marco

100911_data_defined_label_position.diff Magnifier (25.5 KB) Marco Hugentobler, 2010-09-11 06:45 AM

100916_data_defined_label_position.diff Magnifier (33.4 KB) Marco Hugentobler, 2010-09-16 12:23 AM

100923_data_defined_label_position.diff Magnifier (45.2 KB) Marco Hugentobler, 2010-09-23 12:11 AM

101008_data_defined_label_position.diff Magnifier (45.2 KB) Marco Hugentobler, 2010-10-08 01:33 AM

History

#1 Updated by Marco Hugentobler over 13 years ago

The patch is improved now. There is the additional capability of showing direction symbols ('<','>') for labels in case of placement parallel to line or polygon border.

#2 Updated by Marco Hugentobler over 13 years ago

Added another improved patch with the following new features:
- data defined label distance
- data defined rotation (only possible in case of data defined position to not interfere with the smart label placement of pal)
- possibility to have font size in map units

#3 Updated by Giovanni Manghi over 13 years ago

When applied, this will close #3023

#4 Updated by Marco Hugentobler over 13 years ago

Patch updated to apply cleanly with current trunk

#5 Updated by Martin Dobias over 13 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Marco,

finally I've looked at the patch and it looks fine. As I don't know when exactly you return from your holidays, I've committed the patch in so that it doesn't miss the deadline for 1.6 release.

Also available in: Atom PDF