Bug report #15296
Curved labels not showing when 'Merge connected lines' is on
|Affected QGIS version:||2.16.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23230|
When I switch 'Merge connected lines' on, I do not expect less distinct labels. In the screenshots look at 'Vengraven', 'Mertenshof' and 'Geertshof'.
I did some testing (see attached text file) and it appears that the merged lines are shorter than the sum of the parts. More specifically, it appears that the last line segment is not accounted for.
#4 Updated by Frits van Veen over 6 years ago
- File 2016-07-20_06_48_04-QGIS_fd88d91_-_Top10NL.png added
- File 2016-07-20_06_48_41-Calculator.png added
Don't know if the screenshots help.
I do come at line 1472 in feature.cpp. Function FeaturePart::mergeWithFeaturePart where the comment says:
// sometimes it's not possible to merge lines (e.g. they don't touch at endpoints)
I don't know why this happens, but when it does, the behaviour should be to abandon the merge completely and not to leave a potentially large segment out.
I will look further into it. For now I'm going to enjoy a spell of nice weather we have here in Holland!