Skip to main content
Solved

Can I Transfer/Merge only specific or selected attributes using FeatureMerger


I have a FeatureMerger Supplier with the same attribute fields as are available in the Requestor. When there is a matching Supplier, I want to merge the Suppliers geometry and a subset of the Supplier attribute fields into the Requestor, leaving the remaining Requestor attribute fields unchanged, e.g.,

Supplier Attributes Requestor Attributes Action

ORG_CD ORG_CD Requestor value retained

STATUS STATUS Requestor value retained

ACCURACY ---------------------------> ACCURACY Supplier value merged

GIS_ACRES ---------------------------> GIS_ACRES Supplier value merged

LENGTH_FT ---------------------------> LENGTH_FT Supplier value merged

COORD_SRC -------------------------> COORD_SRC Supplier value merged

REPORT_DT REPORT_DT Requestor value retained

 

The geometry part is easily done, but havn't figure out how to update or merge specific attributes.

 

Best answer by ebygomm

For the suppliers only keep the attributes you wish to merge, then within the feature merger in attribute accumulation use merge supplier and use supplier for conflict resolution

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

3 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • Best Answer
  • July 12, 2017

For the suppliers only keep the attributes you wish to merge, then within the feature merger in attribute accumulation use merge supplier and use supplier for conflict resolution


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • July 12, 2017

Two transformers can help here: AttributeKeeper and AttributeRemover.

Remove all attributes from the Supplier that you do not want to merge as @egomm suggested.

Or remove empty attributes from the Requestor if you want them replaced by the same attribute from the Supplier.


  • Author
  • July 13, 2017
ebygomm wrote:

For the suppliers only keep the attributes you wish to merge, then within the feature merger in attribute accumulation use merge supplier and use supplier for conflict resolution

Thanks,

 

 

That did the trick. The example I provided was actually a fairly simplified version of the real problem, but in the end the solution you provided, generated the results I was looking for.

 

 

Thanks again for your quick, complete and easily understood solution.

 

 


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