Distances of points from a reference point
I have a set of points (interested points) at the downstream of a dam-spillway (reference point). Can GM automatically calculate the distances of the interested points from the reference point?
Answers
-
I could do it using table properties of the shapefile. Put X and Y values in an spreadsheet and apply following formula:
C2=SQRT((A2-A$1)^2+(B2-B$2)^2) in which A1 and B1 are X and Y coordinates of the reference point and A2 (to An) and B2 (to Bn) are the coordinates of the interested points. C2 is the distance of the first interested point (A2, and B2) and so on.
-
Or you can try like this:
- Select your reference points and use that to create whisker lines at an offset of 1cm. (in the example I used 10cm)
2- Select the line and the other points and use this:
3-
The process will create an attribute, DIST_FROM_LINE, for each white point.
-
Perfect. I tried it, and it worked. Very easy and fast way inside the model. Thank you.
-
Thank you! This was a very informative answer.
Categories
- 12.9K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 937 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website







