Question

I would like to aggregate lines based on an attribute but with some spatial condition.

  • 25 November 2021
  • 3 replies
  • 1 view

Badge +8

Hello, I have the following dataset (See picture "Before"):

- one layer of lines. Each of the 10 lines belongs to a group (a,b, c etc.) which is saved as an attribute. the first and last vertex of a line is highlighted in black.

- one layer of points. Displayed in blue on picture.

I would like to aggregate all lines that belong to the same group to one line except if there are intersected by a blue point. So all lines of the same group shall be merged into one till they are intersected by the point layer. My final result shall look like "After" attachment which means 7 lines in total. Thank you for your help.


3 replies

Userlevel 2
Badge +11

Hi @katt Use a LineCombiner. Set the attribute to combine on and set the Junctions parameter to "Ignore Attribute Values"

Badge +8

Thank you @danatsafe​ . I think the Junction parameter has been removed ? image

Userlevel 2
Badge +11

Hi @katt It looks like you're using FME 2018? Set "Combine on Attributes" to the attribute value for a ,b, or c

and be sure that "Break Across Attribute Values" is 'Yes'.

Reply