Skip to main content
Question

Reverse attributes values

  • April 27, 2019
  • 2 replies
  • 61 views

samisnunu
Contributor
Forum|alt.badge.img+12

This looks simple to do, but I had to use 2 BulkAttributeRenamer, 2 Counter, then a FeatureJoiner

for example, the below attributes values need to be flipped as the FROM_xx to be TO_xx as shown:

Source attributes:

FROM_X | FROM_Y| FROM_Z | TO_X | TO_Y |TO_Z

1|2|3|4|5|6

 

Output attributes:

FROM_X | FROM_Y| FROM_Z | TO_X | TO_Y |TO_Z

4|5|6|1|2|3

Is there a better way to do it?

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
  • 7843 replies
  • April 27, 2019

This might be a simpler way. The order of attributes in the AttributeManager setting is important.


samisnunu
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • 65 replies
  • April 28, 2019

This might be a simpler way. The order of attributes in the AttributeManager setting is important.

Excellent!!

Many Thanks @takashi..this is way simpler,

However, I guess you meant to remove the _temp_ dummy attributes in the AttributeRemover instead.