Feature request #5874

Use per layer option for label all features option

Added by Denis Rouzaud almost 12 years ago. Updated over 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Labelling
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:15335

Description

When defining the label engine settings, the "Show all
labels" option should be a layer property rather than an engine
setting.

Reply from Martin Dobias:

It's something that PAL does not currently support. But I agree
that it is sometimes useful to label all features even though that
would produce overlaps.

We could improve PAL to place labels in two steps:
1. label features from layers where all features must be labeled,
without collision detection
2. label features from the rest of layers with usual placement
algorithm, labels from step 1 act as obstacles

History

#1 Updated by Martin Dobias almost 12 years ago

  • Assignee deleted (Martin Dobias)

#2 Updated by Larry Shaffer over 11 years ago

Hi,

I've implemented a version of this in commit a584a9a

It works very well for instances where you need to see many layers, but only 'show all labels' for one or two, like during extensive pin/unpin operations.

However, the implementation does not allow those 'show all' labels to become obstacles in the solution of other labels when collisions occur. The 'show all' labels are dynamically solved for the layout, but will overlay or underlie other labels relative to chosen priority and layer render order during a collision. Visual clarity can sometimes be increased by use of label and buffer transparency.

A more collision-proof solution for 'show all' labels would be Martin's suggestion (or something similar). Even then, with multiple 'show all' layers, collisions would need to be addressed.

#3 Updated by Pirmin Kalberer over 11 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#4 Updated by Denis Rouzaud almost 11 years ago

Shall this issue be closed?

#5 Updated by Denis Rouzaud over 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF