Bug report #7680
labels with (rectangle) background overlap each other
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||end of life|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16597|
The new background feature for labels seem to be missing some refinement in its collision detection algorithm. As seen in the attached screenshot, it currently fails to prevent label overlap. It might be due to the buffer value not being taken into account?
#1 Updated by Larry Shaffer over 8 years ago
It is not part of the implementation for any backgrounds or drop shadows, yet. See commit b809723
This should be an optional setting (off by default), as calculating the bounds of the label's background can be expensive and lead to unexpected results (I'm figuring much less labels would be rendered in some cases). While 'normal' backgrounds are not a big issue (those of fixed size or slight buffers), ones with significant offset and rotation might cause problems.
Concerning SVGs, there will need to be loading of the file twice (unless still cached) and creation of possibly significant QImage of the shadow twice per SVG per layer to both calculate and render the label. And, the calculating upfront, before sending to PAL would be for all labels, including the ones that may never be rendered. Again, some caching might help there.
I will be looking into this within the next week.
#4 Updated by Giovanni Manghi over 2 years ago
- Resolution set to end of life
- Status changed from Open to Closed
End of life notice: QGIS 2.18 LTR