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.
Categories
- 12.9K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 643 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 180 Announcement and News
- 926 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 574 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 241 How I use Global Mapper
- 108 Global Mapper Forum Website