Question

Reverse attributes values

  • 27 April 2019
  • 2 replies
  • 5 views

Badge +7

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

Userlevel 2
Badge +17

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

Badge +7

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.

Reply