Question

Create line between points and closest location on line

  • 20 December 2022
  • 2 replies
  • 11 views

Badge +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

Userlevel 6
Badge +33

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.

Userlevel 6
Badge +33

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)

Reply