Distance from point feature to a line feature
Hi
How can I extract the perpendicular distance of a point feature from a line feature?
The line feature is a pipeline route (so only 1 of these) and point features are objects to avoid (of which there are many near the route). I want to extract how many of these objects are within, say, 20m of the route (this I have done) but also want to give the distance of the object from the line.
I'm using GM v21.1.
Thanks.
Answers
-
I had to do the same for an offshore pipeline route this month. I had to ask our draftsman; he was able to do it with AutoCad Civil 3D based on a CSV file with Object-Tag, Easting, Northing.
-
1. Select the Points and pipeline Feature Line with the Digitizer Tool
2. Right-click > Advanced Feature Creation Options > CHAINAGE
GM will generate a series of perpendicular lines connecting the Points to the Feature Lines. Use Search Search by Attributes, Name, and Description to see or export the LENGTH and CHAINAGE values associated with the new lines.
Alternatively you can create a 20m buffer around your pipeline Feature Line and use it to select the points within the buffer:
1. Select the buffer with the Digitizer Tool
2. Right-click > Advanced Selection Options > Select All Points Features Within The Selected Area(s)
-
Thanks for your response OCP_Bots.
@sphillips your first suggestion worked a treat, thanks!
I had used the second approach you mentioned to narrow it down to within 20m of the line but also needed the exact distance.
Categories
- 13K All Categories
- 5.8K Features Discussion
- 351 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 423 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 183 Announcement and News
- 944 Bug Report
- 565 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 583 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 246 How I use Global Mapper
- 111 Global Mapper Forum Website

