Skip to main content

Hello ,

i have some points at the same line

each two point has the same attribute .

i would like to connect each point that has same id together

So I think I can use line builder with group by id .how

but how to connect each two point without the line intersect with other points ?

as my phone ,

point 1 and point 4 has the same id

but if I connect 1 and 4 together so it will create line intersect or overlap on other line between 2 and 3

2 ,3 has same id

1,4 has same id

what should I do to create line between 1,4 and other between 2,3 ? The line should cross but not intersect because I would like to use network topology calculator later .

 

fme 2021

 

If you are using a LineBuilder with a GroupBy, then the line geometry it creates will connect all the points in each group. All the groups are separate, there will be no intersection that a network topo calculator could recognise, except if two groups share the same point.

If you want to 'clip' out segments of these lines if they pass other points, then use a PointOnLineOverlayer, all points vs all lines, on the lines add a list of point IDs they touch, and then on the output exclude any new segmented lines if that list doesn't contain at least one point ID from its original group.


Reply