Skip to main content
Question

LineCombiner- Use Attributes From One Feature

  • April 13, 2026
  • 3 replies
  • 45 views

katta
Contributor
Forum|alt.badge.img+2

Good day, 

I am currently using a LineCombiner with Attribute Accumulation > Accumulation Mode set to ‘Use Attributes From One Feature’.

How does FME decide which feature's attributes are used? I couldn't find anything on this in the documentation.

I used a counter (grouped by the attribute I want the lines to be combined on) before the LineCombiner to validate the outcome. I figured out in half of the cases it used the first feature, for the other half it used the last or some feature in between. How I can influence which feature to use ? I want it to use the first feature always as I sorted them according to some rules. 

 

 

3 replies

ebygomm
Influencer
Forum|alt.badge.img+48
  • Influencer
  • April 13, 2026

If you remove the attributes from every feature that isn’t the first feature, aside from your group by attributes and then use Merge Incoming Attributes all combined lines should then have the attributes from the first feature in the combine


katta
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • April 13, 2026

@ebygomm HI, I tried your solution as suggested but it didn’t work as expected. So I just added a FeatureMerger afterwards to merge the combined lines with the attributes of the first feature.


DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • April 15, 2026

@katta How did it not work as expected?  Using “Merge Incoming Attributes” should always combine attributes, regardless if the feature with the attribute value is first or last, spatially or ordinally.