Skip to main content
Solved

Custom transformer propagating more attributes than desired

  • December 9, 2018
  • 2 replies
  • 7 views

Forum|alt.badge.img

I have defined a custom transformer, and it is outputting more attributes than what I want. I just want to output these two attributes (network_id and lower_network_id):

 

But when using it in the main workbench, it is also outputting attributes from the original input features:

 

I assume this is is because they automatically propagate all source attributes forward, but I want to avoid this, I just want the two-column list. How can I achieve this?

Best answer by takashi

Try inserting the AttributeKeeper before the output port to keep only required attribute.

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

takashi
Celebrity
  • 7842 replies
  • Best Answer
  • December 9, 2018

Try inserting the AttributeKeeper before the output port to keep only required attribute.


Forum|alt.badge.img
  • Author
  • 9 replies
  • December 9, 2018

Try inserting the AttributeKeeper before the output port to keep only required attribute.

This works, thanks.