Skip to main content
Solved

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


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
Did this help you find an answer to your question?

4 replies

jdh
Contributor
Forum|alt.badge.img+28
  • 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+28
  • Contributor
  • March 25, 2021
gis_queen wrote:

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
jdh wrote:

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


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