Skip to main content
Solved

Tag unknown # features with ID from a previous record

  • July 23, 2025
  • 2 replies
  • 47 views

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.

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+64
  • 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! :-)