Skip to main content
Question

Create line between points and closest location on line

  • December 20, 2022
  • 2 replies
  • 86 views

sunsilk11
Contributor
Forum|alt.badge.img+6

Hi, I have a large point dataset and line dataset in ArcGIS. For each point A, I need to 1) create point B on the line which is nearest to the point A. Ensure point is snapped to line

2) Generate a line between points A and B

 

I have tried using NeighborFinder, with the line set as the base. However this doesn't create an additional point dataset on the line.

 

Any suggestions

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

You can use attributes _closest_candidate_x and _closest_candidate_y from the MatchedBase features from the NeighborFinder to add a point using the VertexCreator.


nielsgerrits
VIP
Forum|alt.badge.img+54
nielsgerrits wrote:

You can use attributes _closest_candidate_x and _closest_candidate_y from the MatchedBase features from the NeighborFinder to add a point using the VertexCreator.

Added a sample demonstrating this.

PointToLine(2021)


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