QGIS Labels Rotation
Clash 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)?
qgis labeling angles rotate
add a comment |Â
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)?
qgis labeling angles rotate
Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/â¦
â Mapperzâ¦
3 hours ago
add a comment |Â
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)?
qgis labeling angles rotate
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
qgis labeling angles rotate
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
add a comment |Â
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
add a comment |Â
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.
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.
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 usedto_real()
instead ofto_int()
, in case their angles require decimal place specificity.
â csk
11 mins ago
add a comment |Â
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.
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.
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 usedto_real()
instead ofto_int()
, in case their angles require decimal place specificity.
â csk
11 mins ago
add a comment |Â
up vote
4
down vote
To use an expression to control label rotation, choose "edit" from the data defined override menu.
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.
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 usedto_real()
instead ofto_int()
, in case their angles require decimal place specificity.
â csk
11 mins ago
add a comment |Â
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.
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.
To use an expression to control label rotation, choose "edit" from the data defined override menu.
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.
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 usedto_real()
instead ofto_int()
, in case their angles require decimal place specificity.
â csk
11 mins ago
add a comment |Â
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 usedto_real()
instead ofto_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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Is this stored in a database? you can do angle expressions in the expression builder. gis.stackexchange.com/questions/279504/â¦
â Mapperzâ¦
3 hours ago