Bug report #21013
Label orientation changing when zooming
|Affected QGIS version:||3.4.3||Regression?:||Yes|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||wontfix|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||28832|
When changing zoom, label orientation is changing.
In label properties, Orientation depends on a layer variable
Can be a bug or a properties ... ?
It was running fine with QGIS2.18
Version de QGIS 3.4.1-Rév 383851c597 on windows
#2 Updated by Jean Hemmi over 1 year ago
- Status changed from Feedback to Open
The issue is label rotatioin change when Zooming.
In the first zoom F0030NG26 is oriented as attemped (as describe in the field "Orientation".
In the second, the orientation is not OK (not as describe in the layer).
I've omitted to precise that the same issu appear with Geopackage, geojson or shapeile vectors.
#4 Updated by Nyall Dawson over 1 year ago
- Resolution set to wontfix
- Status changed from Open to Closed
There's no issue here -- the in the zoomed out version, the label has been placed in the only orientation which allows it to fit (from top left to bottom right). But when zooming in, the label can fit in the "fatter" part of the polygon, so is placed bottom left to top right. This is how QGIS prioritises polygon labels -- it tries to place the label in the places where there's greatest distance from the label itself to the edges of the polygon (i.e. the "fattest" part of the polygon). But when it can't (the first screenshot), it falls back to alternate places to try and make the label fit.
#6 Updated by Giovanni Manghi over 1 year ago
- Status changed from Reopened to Closed
Jean Hemmi wrote:
Thanks for your answer that i do understand ! When QGIS3 choose, it'is really efficient !
But I am used to give QGIS a label orientation in properties and QGIS 2 was accepting my demand.
I believe QGIS3 is able to.
Please raise this on the users and or developers mailing for wider discussion (before eventually reopening this), thanks!