Can I get array of ground X and Y values in LOS
mg.srikanth
Global Mapper User
Hi,
I was able to get the array of (1024) elevation points in LOS, like wise can I get array of (1024) ground X and ground Y values corresponding to elevation points using GM_GetPathProfileLOS() function call?
I tried using GM_GetPathProfileLOS to get those points but failed to do so.
I also tried to get the points using range and bearing function to calculate second point upto 1024th point using SDK functions along the path of LOS but, my last point and actual end point which i gave input to GM_GetPathProfileLOS are not matching.
Can anyone help me in finding those points?
Can i calculate slope and gradient using SDK?
Srikanth
I was able to get the array of (1024) elevation points in LOS, like wise can I get array of (1024) ground X and ground Y values corresponding to elevation points using GM_GetPathProfileLOS() function call?
I tried using GM_GetPathProfileLOS to get those points but failed to do so.
I also tried to get the points using range and bearing function to calculate second point upto 1024th point using SDK functions along the path of LOS but, my last point and actual end point which i gave input to GM_GetPathProfileLOS are not matching.
Can anyone help me in finding those points?
Can i calculate slope and gradient using SDK?
Srikanth
Comments
-
The elevation samples are evenly spaced between the start and end point. So just calculate the delta X and Y from the start and end points that you provide to the GM_GetPathProfileLOS function, then divide that by the sample count - 1 to get the X and Y delta for each point. Then you can easily calculate the X and Y for each point by adding the appropriate number of deltas to the start X and Y.
For the slope, if you know the X and Y points and the elevations you can easily calculate the distance between them and the resulting slope caused by a change in Z.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Thank you Mike for suggestion, otherwise i was trying to calculate the next point using range and bearing which was not giving accurate result. Now i could get x and y values with delta value which is giving correct result when i tested.
Howdy, Stranger!
Categories
- 12.2K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 580 GM Script Language
- 42 User Scripts
- 111 GPS Features
- 388 Projection Questions
- 788 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 520 Other Discussion
- 125 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 99 Global Mapper Forum Website