Hey ya'll
Posted: Fri Jan 28, 2022 11:27 pm
Greetings from the Deep South(North America).
I'm working towards a second career as a land surveyor. With that in mind, I've been collecting value added open source software to help me achieve my future career goals as cost effectively and efficiently as possible. QCAD and QGIS seems to be great solutions!
I downloaded the trial version and started learning. I quickly discovered the scripting capability and attempted to write a script to calculate Bearing and Azimuth with some formatting. I blew through the 100 restarts in a few days trying to refine the script and restarting.
I went ahead and purchased the software and was able to refine the script but quickly realized the limits of my abilities while utilizing the available online resources, examples and documentation. I wish there was more available.
If anyone is interested, the script is attached. It calculates the distance, bearing and azimuth between two points and outputs it to the command line. I then cut and paste those values into text blocks for use in my products. I would love to be able to write script for alternative formats and additional text. DMS format, configured precision N,S prefixing and E,W suffixing would be nice as well. Maybe someone here can take it further. I've reached the limits of my current capabilities.
The script is cobbled together from the dovetail example, script and the point to point measurement script. It's definitely Dr. Frankenstein's work. Enjoy!
I'm working towards a second career as a land surveyor. With that in mind, I've been collecting value added open source software to help me achieve my future career goals as cost effectively and efficiently as possible. QCAD and QGIS seems to be great solutions!
I downloaded the trial version and started learning. I quickly discovered the scripting capability and attempted to write a script to calculate Bearing and Azimuth with some formatting. I blew through the 100 restarts in a few days trying to refine the script and restarting.
I went ahead and purchased the software and was able to refine the script but quickly realized the limits of my abilities while utilizing the available online resources, examples and documentation. I wish there was more available.
If anyone is interested, the script is attached. It calculates the distance, bearing and azimuth between two points and outputs it to the command line. I then cut and paste those values into text blocks for use in my products. I would love to be able to write script for alternative formats and additional text. DMS format, configured precision N,S prefixing and E,W suffixing would be nice as well. Maybe someone here can take it further. I've reached the limits of my current capabilities.
The script is cobbled together from the dovetail example, script and the point to point measurement script. It's definitely Dr. Frankenstein's work. Enjoy!