Skip to main content
Question

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

  • November 25, 2021
  • 3 replies
  • 22 views

katt
Supporter
Forum|alt.badge.img+12
  • Supporter

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

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • November 26, 2021

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


katt
Supporter
Forum|alt.badge.img+12
  • Author
  • Supporter
  • November 26, 2021

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


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • November 27, 2021

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'.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings