Skip to main content

i would like to ask :

i want to snap several small lines to closet point ,i have around 20 point but i have problem with only 2 point .

each small lines connects to different lines around each point

 

First point : 6 lines around 1 point around 1.30 m

Second point : 5 lines around 1 point around 1.50 m

 

For First point : i used snapper but i got the problem ,i have to use maximum 1.3 because more than it ,it will snap the second line instead of the first line close to the point .

 

but i need to use value higher than 1.30 ,around 1.5 to snap the second point but it is not working well with the first point , because it snapped wrong lines .

 

i tried neighbor finder with generate list ,i found it gives me alll lines around it and each line that i have around this point small line connects to lone line and it give me each lines connected around this point .

 

i tried alot but i am not sure how could i manage snapping between this 2 points

 

FME Version 2018

Thanks in advance for any help

 

 

 

 

You can use a series of Snapper transformers, each with an increased snapping distance.

Lead the Untouched output lines (and all points) to the next Snapper and bypass the Snapped to the output.

Hope this helps.


You can use a series of Snapper transformers, each with an increased snapping distance.

Lead the Untouched output lines (and all points) to the next Snapper and bypass the Snapped to the output.

Hope this helps.

Thanks for ur reply ,but I tried that also but it did not work with me ,because I found it works great at the beginning .i mean ,i snapped first time who in the area 1.3m from the point then by passed un touched output to the second snapper with tolerance 1.5 m ,i found it works great only for the closet line in this area but there are untouched lines that included and I did not want to snap it ,like the point has Lines in the area less than 0.5 m hav also closet lines 1.5 Meter so at the second snapper ,it snapped wrong lines also .


Try using AnchoredSnapper instead, with the Points as the Anchors.

This will leave the Points as a fixed reference and won't move, whereas the ends of the lines will snap to the Closest Point.


Try using AnchoredSnapper instead, with the Points as the Anchors.

This will leave the Points as a fixed reference and won't move, whereas the ends of the lines will snap to the Closest Point.

I'd recommend the AnchoredSnapper solution.


Try using AnchoredSnapper instead, with the Points as the Anchors.

This will leave the Points as a fixed reference and won't move, whereas the ends of the lines will snap to the Closest Point.

Could I ask ,Do we have a method for Anchored snapper with tolerance automatic

I used anchored snapper and still have the same problem .

,I was thinking if I can use intersector with tolerance automatic but Iam not sure if it can do snapping to each point automatic as I need or not and also may be intersector make intersects points for in wanted nodes ,I do not want to create another problem .

Because my problem about input specific distance in tolerance for short lines .

So I am not able to write specific distance for snapping for different points .

1.Most of lines are short lines ,connects with Long Lines around each point .

2. there are also no short Lines around the points ,only long line so it snapped good with out no problem

When I use anchored snapper it fix the point but also when I use tolerance 1.5 meter ,it snapped two lines together ,when I have short line around the point that connects to long line .

So it will snap the short line in the distance 1.3 m and also the neighbor line .

Because 1.5 m distance for two connecting lines ,when I have short lines.

When the closet distance 1.3 m at some points .

 


Could I ask ,Do we have a method for Anchored snapper with tolerance automatic

I used anchored snapper and still have the same problem .

,I was thinking if I can use intersector with tolerance automatic but Iam not sure if it can do snapping to each point automatic as I need or not and also may be intersector make intersects points for in wanted nodes ,I do not want to create another problem .

Because my problem about input specific distance in tolerance for short lines .

So I am not able to write specific distance for snapping for different points .

1.Most of lines are short lines ,connects with Long Lines around each point .

2. there are also no short Lines around the points ,only long line so it snapped good with out no problem

When I use anchored snapper it fix the point but also when I use tolerance 1.5 meter ,it snapped two lines together ,when I have short line around the point that connects to long line .

So it will snap the short line in the distance 1.3 m and also the neighbor line .

Because 1.5 m distance for two connecting lines ,when I have short lines.

When the closet distance 1.3 m at some points .

 

I want to know if you were able to solve this issue, because right now I am facing similar issue


Reply