2

Using QGIS 2.18

I have line feature and want to add a foot tick mark and a deg symbol to label the label as of now shows

"dis" || "Azimuth"

339045

I would like it to show

3391' 45 deg

The expression is simple and i know the answer is simple as well.

2

It looks like this is what worked: "dis" || ' \'' || "Azimuth" || char(730) to produce a label of 1024 '208˚

1

This may depend on the OS you are working on;

Windows10

 "dis"  || '\'' ||   "Azimuth"  || char(0176)

enter image description here

  • running Linux Elementary.. this is what i got... 1896'124~ so i t looks like all i need to do is add a space after the ' and figure out what char is the degree symbol. Any further help would be great. and Thanks for your help! – lowsparked May 9 '18 at 21:14
  • @user12577 sorry i am not sure, char(b0) perhaps? – Kazuhito May 9 '18 at 21:18
  • It looks like this is what worked: "dis" || ' \'' || "Azimuth" || char(730) to produce a label of 1024 '208˚ – lowsparked May 9 '18 at 21:21
  • but after looking at I need the space to be between the ' and the "Azimuth" now it is after the "dis" but before the '.... – lowsparked May 9 '18 at 21:27
  • @user12577 please consider posting it as your answer for future readers on Linux. – Kazuhito May 9 '18 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.