Solved

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


I have 2 shapefiles:

  • roadway centerlines
  • house points

 

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

icon

Best answer by jdh 25 March 2021, 20:10

View original

4 replies

Badge +22

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

 

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

Badge +22

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

you set the wrong attribute on the y_value

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

Reply