2

using QGIS 18.16 I am trying to figure out how to cal a reverse azimuth. Basically the opposite direction. So if i have a azimuth of 163, I subtract 180 which gives me -17. I some how need to write a script or a field calc to then , for only the '-', numbers subtract that number form 360. which would give me 343 as the reversed azimuth.

3
  • 1
    Can you specify what do you like to do (which software do you use)?
    – Moh
    May 17, 2018 at 17:12
  • updated to state I am using QGIS 18.16
    – lowsparked
    May 17, 2018 at 17:24
  • Try if( "azimuth" < 180, "azimuth" + 180, "azimuth" - 180)
    – Kazuhito
    May 17, 2018 at 18:03

1 Answer 1

2

Try if( "azimuth" < 180, "azimuth" + 180, "azimuth" - 180)

enter image description here

1
  • @user12577 - did this solution work for you? Helpful (and rewarding!) to click the 'accept' check mark when answers are successful!
    – Simbamangu
    Jun 6, 2018 at 18:31

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.