Skip to main content
Solved

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

  • Mar 25, 2021 6:50 PM UTC
  • 4 replies
  • 104 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

 

View original
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+41
  • Contributor
  • Best Answer
  • Mar 25, 2021 7:10 PM UTC

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
  • Mar 25, 2021 7:40 PM UTC

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+41
  • Contributor
  • Mar 25, 2021 8:55 PM UTC

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
  • Mar 25, 2021 9:30 PM UTC

you set the wrong attribute on the y_value

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