Skip to main content
Solved

Tag unknown # features with ID from a previous record


joaniegeo99
Contributor
Forum|alt.badge.img+2

Hi, I’m struggling to tag a set of features with an ID, input data looks like the left case in this image:

What I want is shown on the right. My input has a line of data with the ID, and it’s implied each record after that has that ID, until a record resets the ID for the subsequent features. 

Here’s a very similar example but differs from mine in that my ID is on a separate line: 

It seems like a Python caller might work, but I’m not very handy with Python & FME. Any suggestions welcome. Thanks in advance!

Best answer by hkingsbury

You can solve this using adjacent features and conditional logic.

You look at the previous feature and if it has an ID (a value in the second column) use that.

 

 

View original
Did this help you find an answer to your question?

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+58
  • Celebrity
  • Best Answer
  • July 23, 2025

You can solve this using adjacent features and conditional logic.

You look at the previous feature and if it has an ID (a value in the second column) use that.

 

 


joaniegeo99
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • July 24, 2025

Thank you Hamish, you’re a star! :-)


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