Bug report #2812

Missing labels with the new labeling system

Added by Jean-Roc Morreale over 9 years ago. Updated over 5 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Vectors
Affected QGIS version:master Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:12872

Description

Hi,

The new labeling system doesn't display all the labels of a layer, see the joined file for an example using an integer field for labels. The parameters used are free placement and no obstacles, activating colliding and candidate labels modify nothing.

The old labeling system displays them all, I can reproduce this problem with other layers.

missing_labels.tar.lzma - shapefile having the missing labels issue (6.87 KB) Jean-Roc Morreale, 2010-06-15 01:30 PM

labels_test.zip (3.61 KB) michele zanolli, 2012-01-20 01:25 AM

History

#1 Updated by Jean-Roc Morreale about 9 years ago

The bug is due to topological errors in the polygons, the labels appears when it is corrected (not self-intersection). This behavior is making the use of the new label engine harder on gps data collected with centimetric gps, if the surveyor makes a small wrong move then the data has to be manually corrected to be labeled (automatic cleaning does not give good result).

The old labelling engine works on both uncorrected an corrected data.

#2 Updated by Giovanni Manghi almost 8 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

#3 Updated by michele zanolli almost 8 years ago

  • Crashes QGIS or corrupts data set to No
  • File labels_test.zip added
  • Affected QGIS version set to master

Maybe this problem is related to the following:

I am having problems with curved labeling with my layer of lines (see attached shapefile).

Enable the advanced option "Show all labels (i.e. including colliding labels")
Try to display labels with "parallel" placement option --> ok, all labels are displayed.
Try to display labels with "curved" placement option --> I can see only 1 or 2 labels.

#4 Updated by Giovanni Manghi almost 8 years ago

  • Pull Request or Patch supplied set to No

michele zanolli wrote:

Maybe this problem is related to the following:

I am having problems with curved labeling with my layer of lines (see attached shapefile).

Enable the advanced option "Show all labels (i.e. including colliding labels")
Try to display labels with "parallel" placement option --> ok, all labels are displayed.
Try to display labels with "curved" placement option --> I can see only 1 or 2 labels.

Hi Michele, this missing curved labels should be another issue, please file a separate ticket.

#5 Updated by Paolo Cavallini over 7 years ago

  • Target version changed from Version 1.7.4 to Version 1.8.0

#6 Updated by Paolo Cavallini over 7 years ago

  • Target version changed from Version 1.8.0 to Version 2.0.0

#7 Updated by Martin Dobias almost 6 years ago

  • Assignee deleted (Martin Dobias)

#8 Updated by Nathan Woodrow over 5 years ago

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

These are all implemented in 2.0 >

Also available in: Atom PDF