Skip to main content
Question

How to process data different rows compare in FME

  • November 14, 2018
  • 5 replies
  • 307 views

Forum|alt.badge.img

I have a non-spatial data, want to compare every 2 rows: if they has A, B columns same then compare Column C Start, Column D End has the overlap, if it overlap with another row, write that row id to this row column. See attached image, any suggestion for the task? Thank you very much.

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.

5 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • November 14, 2018

Hi @allensong

Did you try to do this action with the transformer FeatureMerger?

 

Thanks,

Danilo


Forum|alt.badge.img
  • Author
  • 10 replies
  • November 14, 2018

haven't get a very clear idea how to do this: think PythonCaller, looks different to process different rows, I also got all unique combination of Column A and Column B as X cords, Column C start as Y1, Column D as Y2, so if I can make a line from (X, Y1), and (X, Y2) as a line, then if I found any intersection, these rows are need to assign a value. But I am new in FME, has some difficult to implement this idea.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2940 replies
  • November 14, 2018

I do this with an AttributeCreator, Enable Adjacent Feature Attributes. Then you can, like in Excel, compare with previous or next row.


Forum|alt.badge.img
  • Author
  • 10 replies
  • November 14, 2018

I do this with an AttributeCreator, Enable Adjacent Feature Attributes. Then you can, like in Excel, compare with previous or next row.

Thanks for the suggestion, I will give it a try.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2940 replies
  • November 14, 2018

Thanks for the suggestion, I will give it a try.

Let me know if you need more help. Please add a sample of your data so I don't have to recreate it from the screenshot.