Bug report #13852

merge connected lines to avoid duplicate labels fails in attached scenario

Added by Mathieu Pellerin - nIRV almost 5 years ago. Updated over 4 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Labelling
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:21876

Description

This is not a huge deal, but would be nice to see fixed - if that is possible. Attached is a small test project with a set of lines taken straight from OpenStreetMap. The ref=* tag for the lines all have the same identical value, in this case 1, and the [x] merge connected lines to avoid duplicate labels is checked. Yet, two labels are created.

Again, nothing urgent, but would be lovely to have this corner case handled properly.

lines_label.zip.zip (6.78 KB) Mathieu Pellerin - nIRV, 2015-11-18 08:41 PM

13852.png (6.24 KB) Peter Petrik, 2016-01-28 06:00 AM

History

#1 Updated by Peter Petrik over 4 years ago

The set of lines in the attached project have two 3-way junctions (see screenshot 13852.png). The function FeaturePart::mergeWithFeaturePart supports only continuous LineString and therefore multiple labels are created

#2 Updated by Saber Razmjooei over 4 years ago

  • Status changed from Open to Feedback

#3 Updated by Giovanni Manghi over 4 years ago

  • Resolution set to invalid
  • Status changed from Feedback to Closed

Also available in: Atom PDF