Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

labels with (rectangle) background overlap each other #16597

Closed
qgib opened this issue Apr 22, 2013 · 8 comments
Closed

labels with (rectangle) background overlap each other #16597

qgib opened this issue Apr 22, 2013 · 8 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Labeling Related to QGIS map labeling stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@qgib
Copy link
Contributor

qgib commented Apr 22, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 7680
Affected QGIS version: master
Redmine category:labelling


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?


@qgib
Copy link
Contributor Author

qgib commented Apr 23, 2013

Author Name: Larry Shaffer (Larry Shaffer)


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.

@qgib
Copy link
Contributor Author

qgib commented Jun 21, 2014

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Labelling

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0
  • regression was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR
*
Source:*
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • resolution was changed from to end of life
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling labels May 24, 2019
@nyalldawson
Copy link
Collaborator

Still an issue with 3.8

@nyalldawson nyalldawson reopened this May 28, 2019
@Pedro-Murteira
Copy link

I've tested this issue on QGIS 3.22.3 and I can't seem to reproduce it, i've tested this with diferent settings and data samples, and I always get the correct behaviour out of the (rectangle) background labels. (Windows 10)

@gioman gioman added the Feedback Waiting on the submitter for answers label Feb 10, 2022
@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 25, 2022
@github-actions
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Labeling Related to QGIS map labeling stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

4 participants