QGIS Labels Rotation

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have imported some OS MasterMap data into QGIS 3.2 and have labelled the Cartographic Text dataset. This dataset has a rotation field, populated with various angles of rotation depending where they are to be positioned with relation to roads and buildings. However, when I choose this column under Data Defined Placement, it seems to be rotating the labels in the wrong direction.



Is there a way to tell QGIS to treat the angles differently, as you can in ArcGIS (geographic or arithmetic)?










share|improve this question





















  • Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/…
    – Mapperz♦
    3 hours ago














up vote
1
down vote

favorite












I have imported some OS MasterMap data into QGIS 3.2 and have labelled the Cartographic Text dataset. This dataset has a rotation field, populated with various angles of rotation depending where they are to be positioned with relation to roads and buildings. However, when I choose this column under Data Defined Placement, it seems to be rotating the labels in the wrong direction.



Is there a way to tell QGIS to treat the angles differently, as you can in ArcGIS (geographic or arithmetic)?










share|improve this question





















  • Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/…
    – Mapperz♦
    3 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have imported some OS MasterMap data into QGIS 3.2 and have labelled the Cartographic Text dataset. This dataset has a rotation field, populated with various angles of rotation depending where they are to be positioned with relation to roads and buildings. However, when I choose this column under Data Defined Placement, it seems to be rotating the labels in the wrong direction.



Is there a way to tell QGIS to treat the angles differently, as you can in ArcGIS (geographic or arithmetic)?










share|improve this question













I have imported some OS MasterMap data into QGIS 3.2 and have labelled the Cartographic Text dataset. This dataset has a rotation field, populated with various angles of rotation depending where they are to be positioned with relation to roads and buildings. However, when I choose this column under Data Defined Placement, it seems to be rotating the labels in the wrong direction.



Is there a way to tell QGIS to treat the angles differently, as you can in ArcGIS (geographic or arithmetic)?







qgis labeling angles rotate






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









Sean McVeigh

864




864











  • Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/…
    – Mapperz♦
    3 hours ago
















  • Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/…
    – Mapperz♦
    3 hours ago















Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/…
– Mapperz♦
3 hours ago




Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/…
– Mapperz♦
3 hours ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote













To use an expression to control label rotation, choose "edit" from the data defined override menu.



enter image description here



If all of your angles are positive numbers, use this expression to make them negative:



concat('-', to_real('fieldname')) 


If your angles include positive and negative values, use this expression:



 to_real('fieldname') * -1


If your field is already in numerical format you can leave out the to_real() function.






share|improve this answer


















  • 1




    i'd also check the field type in the layer properties, if it's a string you may need to convert it to an integer.
    – Steven Kay
    25 mins ago










  • Thanks @StevenKay, I incorporated your suggestion into my answer. I used to_real() instead of to_int(), in case their angles require decimal place specificity.
    – csk
    11 mins ago










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f298349%2fqgis-labels-rotation%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote













To use an expression to control label rotation, choose "edit" from the data defined override menu.



enter image description here



If all of your angles are positive numbers, use this expression to make them negative:



concat('-', to_real('fieldname')) 


If your angles include positive and negative values, use this expression:



 to_real('fieldname') * -1


If your field is already in numerical format you can leave out the to_real() function.






share|improve this answer


















  • 1




    i'd also check the field type in the layer properties, if it's a string you may need to convert it to an integer.
    – Steven Kay
    25 mins ago










  • Thanks @StevenKay, I incorporated your suggestion into my answer. I used to_real() instead of to_int(), in case their angles require decimal place specificity.
    – csk
    11 mins ago














up vote
4
down vote













To use an expression to control label rotation, choose "edit" from the data defined override menu.



enter image description here



If all of your angles are positive numbers, use this expression to make them negative:



concat('-', to_real('fieldname')) 


If your angles include positive and negative values, use this expression:



 to_real('fieldname') * -1


If your field is already in numerical format you can leave out the to_real() function.






share|improve this answer


















  • 1




    i'd also check the field type in the layer properties, if it's a string you may need to convert it to an integer.
    – Steven Kay
    25 mins ago










  • Thanks @StevenKay, I incorporated your suggestion into my answer. I used to_real() instead of to_int(), in case their angles require decimal place specificity.
    – csk
    11 mins ago












up vote
4
down vote










up vote
4
down vote









To use an expression to control label rotation, choose "edit" from the data defined override menu.



enter image description here



If all of your angles are positive numbers, use this expression to make them negative:



concat('-', to_real('fieldname')) 


If your angles include positive and negative values, use this expression:



 to_real('fieldname') * -1


If your field is already in numerical format you can leave out the to_real() function.






share|improve this answer














To use an expression to control label rotation, choose "edit" from the data defined override menu.



enter image description here



If all of your angles are positive numbers, use this expression to make them negative:



concat('-', to_real('fieldname')) 


If your angles include positive and negative values, use this expression:



 to_real('fieldname') * -1


If your field is already in numerical format you can leave out the to_real() function.







share|improve this answer














share|improve this answer



share|improve this answer








edited 13 mins ago

























answered 1 hour ago









csk

5,633632




5,633632







  • 1




    i'd also check the field type in the layer properties, if it's a string you may need to convert it to an integer.
    – Steven Kay
    25 mins ago










  • Thanks @StevenKay, I incorporated your suggestion into my answer. I used to_real() instead of to_int(), in case their angles require decimal place specificity.
    – csk
    11 mins ago












  • 1




    i'd also check the field type in the layer properties, if it's a string you may need to convert it to an integer.
    – Steven Kay
    25 mins ago










  • Thanks @StevenKay, I incorporated your suggestion into my answer. I used to_real() instead of to_int(), in case their angles require decimal place specificity.
    – csk
    11 mins ago







1




1




i'd also check the field type in the layer properties, if it's a string you may need to convert it to an integer.
– Steven Kay
25 mins ago




i'd also check the field type in the layer properties, if it's a string you may need to convert it to an integer.
– Steven Kay
25 mins ago












Thanks @StevenKay, I incorporated your suggestion into my answer. I used to_real() instead of to_int(), in case their angles require decimal place specificity.
– csk
11 mins ago




Thanks @StevenKay, I incorporated your suggestion into my answer. I used to_real() instead of to_int(), in case their angles require decimal place specificity.
– csk
11 mins ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f298349%2fqgis-labels-rotation%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

Long meetings (6-7 hours a day): Being “babysat” by supervisor

Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

Confectionery