I have simple question, how can i export angles from Advanced Digitizing Panel do attribute table? . For example , i want to draw a line of length 100m at angle -45 degree. I do it using advanced digitizing panel but i want this specific -45 degree value in my attribute table, how can i do it?
Asked
Active
Viewed 298 times
1
1 Answers
1
From your comments, it becomes clear that you're looking for the azimuth of a line = angle clockwise from North.
To do that, use the following expression:
degrees(
azimuth(
start_point($geometry),
end_point($geometry)
)
)
Screenshot: azimuth is 315 degrees, this corresponds to -45 degrees (360 - 45= 315):

Babel
- 71,072
- 14
- 78
- 208
-
-
1You're welcome. As a new user, please be adviced that this side tries to avoid "thank you" messages. Instead, it encourages you to accept the answer and/or upvote it: click the checkmark right to the answer to accept it - see: https://gis.stackexchange.com/help/someone-answers Just click the checkmark, see here: https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235 – Babel Nov 07 '21 at 13:10

20on line 3 with the index of the vertex at which you want to calculate the angle: for vertex no. 3, replace20with4(vertex calculation starts with 0, the expression starts with 1), see: https://i.stack.imgur.com/u8VUh.png – Babel Nov 04 '21 at 12:45