Skip to main content
Solved

How to compare attribute to attributes within a list?

  • April 20, 2018
  • 2 replies
  • 226 views

juliarozema
Contributor
Forum|alt.badge.img+9

Hello,

I have two features: Feature_PT (point) and Feature_LN (line). They have the same attributes but I have added PT_ to the front of the Feature_PT attributes and LN_ to the front of the Feature_LN attributes so that they are distinguishable after I use the PointOnLineOverlayer (POLO).

Within the POLO parameters I have enabled the lists with the following attributes:

Point List Name: _pt_overlay_list

 

- Attributes: PT_NAME

Line List Name: _ln_overlay_list.

 

- Attributes: LN_NAME

For the majority of my data there is a 1-to-1 match between Feature_PT and Feature_LN. My question is regarding the output points from the POLO that overlapped more than one line. I would like to compare each PT_NAME within the POLO - POINT OUTPUT to it's associated _pt_overlay_list{}.LN_NAME to see if PT_NAME matches any of the LN_NAME within the list. I only care about the first match. So, if there is a match, I would like the attributes of that matching Feature_LN to be the attributes that carry forward.

I have attached an image that might help explain what I am looking for. The image is of the hypothetical output attribute table from the POLO - Point Output.

Thank you so much FME Community.

 

I am using - FME Desktop 2018.0.0.1

@andreaatsafe

Best answer by erik_jan

Have you tried the ListSearcher transformer to find the PT_NAME in the LN list?

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

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • Best Answer
  • April 20, 2018

Have you tried the ListSearcher transformer to find the PT_NAME in the LN list?


juliarozema
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • 45 replies
  • April 20, 2018

Have you tried the ListSearcher transformer to find the PT_NAME in the LN list?

Hi @erik_jan

 

Thank you. This might be exactly what I am looking for.

 

 

@AndreaAtSafe - I might have this figured out. thank you for your time yesterday at the #FMEWT