Skip to main content
Hello,

 

 

I'm having  point features, which are placed near lines and I need to move them onto the lines.

 

 

I used the neighborFinder so I know a distance between the points and the lines, but I can not find how to displace the points so they touch the lines.

 

 

Thank you for your advices!
Hi,

 

 

I would make use of the attributes computed by the NeighborFinder ( _closest_base_x, _closest_base_y and _closest_candidate_x, _closest_candidate_y ) in the Offsetter.

 

 

Hope this helps,

 

Itay
An alternative method would be to use the AnchoredSnapper. Pass your lines into the Anchor port (won't move) and your lines into the Candidate port (will move). Your points will snap to the nearest nodes so you may want to use the Densifier on your lines first to give your points a better snap accuracy.

 

 

Hope that helps, Dave
Thanks Dave, I tried your method 100% easy and effective!

Reply