Bug report #13753

Data defined label rotation in Radians, not Degrees

Added by Steven Kay over 4 years ago. Updated over 4 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Labelling
Affected QGIS version:2.12.0 Regression?:No
Operating System:Linux Ubuntu 32-bit Easy fix?:No
Pull Request or Patch supplied:No Resolution:worksforme
Crashes QGIS or corrupts data:No Copied to github as #:21780

Description

According to 'description' popup on the data-defined rotation property for labels.. this suggests degrees...

Active: yes (ctrl|right-click toggles)
Usage:
In edit mode, layer's relevant labeling map tool is:
Defined attribute field -> enabled
Defined expression -> disabled
Expected input:
double [*-180.0 - 180.0*]
Valid input types:
string, int, double
Current definition (expression):
1.57

I noticed labels disappeared above a value of 10. After a bit of experimentation I discovered the units were radians (hence 1.57, to match the 90 degree canvas rotation)

Can't remember if this used to be in degrees, or is this just an inconsistency with the pop-up description?

History

#1 Updated by Giovanni Manghi over 4 years ago

  • Status changed from Open to Feedback

I can apply use data defined rotation using values that are representing degrees... testing on linux/master.

#2 Updated by Giovanni Manghi over 4 years ago

  • Target version deleted (Version 2.12)

#3 Updated by Giovanni Manghi over 4 years ago

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

closing for lack of feedback.

Also available in: Atom PDF