Question

Move points onto close lines.

  • 7 January 2013
  • 3 replies
  • 2 views

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!

3 replies

Userlevel 4
Badge +13
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
Badge +14
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