Skip to main content
Solved

Create shortest line between existing point and line

  • January 8, 2021
  • 2 replies
  • 192 views

ingalla
Contributor
Forum|alt.badge.img+10

i have a point dataset showing the location of road furniture, and also a line dataset showing the geometry of a road. I need to create a line between the existing point and the road line, but cant get my head round where to start.

 

Any suggestions welcome...

Best answer by jlbaker2779

This should give you the idea of how it works in general.

 

To create a line between the point and the nearest point on a line segment you use a NeighborFinder in conjunction with a VertexCreator using the coordinates generated by the finder.

CaptureThe result is each point with a line to the nearest coordinate on the line.

Capture2

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

The NeighborFinder should be able to do that for you.


Forum|alt.badge.img+2
  • Best Answer
  • January 8, 2021

This should give you the idea of how it works in general.

 

To create a line between the point and the nearest point on a line segment you use a NeighborFinder in conjunction with a VertexCreator using the coordinates generated by the finder.

CaptureThe result is each point with a line to the nearest coordinate on the line.

Capture2