Skip to main content
Question

Reverse attributes values


samisnunu
Contributor
Forum|alt.badge.img+10

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?

2 replies

takashi
Evangelist
  • 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+10
  • Author
  • Contributor
  • April 28, 2019
takashi wrote:

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.


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