Skip to main content
Solved

Is there a way to generate lines between each point and the nearest road centerline?

  • March 25, 2021
  • 4 replies
  • 42 views

gis_queen

I have 2 shapefiles:

  • roadway centerlines
  • house points

 

is there a way to generate lines between each point and the nearest road centerline?

Best answer by jdh

Use a NeighborFinder with the house as base and the roadway centerlines as candidate.

On the MatchedBase port use a VertexCreator in mode Add Point with the x/y values coming from _closest_candidate_x/y

 

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.

4 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • Best Answer
  • March 25, 2021

Use a NeighborFinder with the house as base and the roadway centerlines as candidate.

On the MatchedBase port use a VertexCreator in mode Add Point with the x/y values coming from _closest_candidate_x/y

 


gis_queen
  • Author
  • March 25, 2021

Wow, thanks so much! That definitely got it going but it's not drawing all the way back to the road. Did I maybe miss something?candidate1houses1


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • March 25, 2021

Wow, thanks so much! That definitely got it going but it's not drawing all the way back to the road. Did I maybe miss something?candidate1houses1

you set the wrong attribute on the y_value


gis_queen
  • Author
  • March 25, 2021

you set the wrong attribute on the y_value

oops, that's embarrassing. Thanks again for coaching me through this. Things look great now!