Skip to main content
Hi,

 

Seems like a simple thing but unable to get the desired output as yet.

 

There are small segments of roads which have names. Need to join them between intersections and derive another field which would concatenate the Names of the all the small road segments which forms the joined Line.

 

LineJoiner is being used to join, but how to fetch the attributes as a list (or concatenated field) between intersections? SpatialRelator, is not giving the desired result.

 

Thanks in advance,

 

Sani.
Hi,

 

 

1. Divide the flow in 2 processes

 

2. In flow-1, place LineJoiner

 

3. In flow-2, place Snipper with Snipping mode as "Distance (Percentage)" with Starting and Ending location as "50" such that point will be created at mid-point of the each line

 

4. Use SpatialRelator with 

 

    a. Requestor as data from LineJoiner (From Step2) 

 

    b. Supplier as data from Snipper (From Step3)

 

5. Place a Tester with condition as "_related_candidates" = "1"

 

6. Add ListConcatenator for Tester-failed port with _relationships{}.<<User attribute name>>

 

7. Connect the Tester-Passed port and ListConcatenator output to writer

 

 

Screenshot is placed below for better understanding

 

 

 

 

Pratap
Hi Pratap, :)

 

Thank you for the quick respose... I had tried mid point way. To explain the desired output further...

 

 

A-B-C-D are the original line segments. A-D would be the joined line between intersections, which needs to incorporate all the name attribute, I've just given a random example here. Then when I try the SpatialRelator it shows 'snm' as the value (I guess due to the Curve Boundary Rule) for all the individual segments, instead of snm, dnm, snm.

 

Regards,

 

Sani.

 

 

 
May be you have ignored the last transformer named "ListConcatenator"

Reply