Skip to main content
Solved

How to compare attribute to attributes within a list?


juliarozema
Contributor
Forum|alt.badge.img+7

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?

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

2 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • 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+7
  • Author
  • Contributor
  • April 20, 2018
erik_jan wrote:

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

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