Skip to main content

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.

 

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


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.


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.

 

 


Reply