Skip to main content
Solved

Create shortest line between existing point and line


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

View original
Did this help you find an answer to your question?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings