Question

Convert value into new column.

  • 10 November 2022
  • 6 replies
  • 8 views

Badge +6

Hi,

I need to transform the value of this column and a new column...the values are always the same.

 

captura 

Thank´s


6 replies

Userlevel 3
Badge +26

If I'm understanding correctly, I believe you can use a BulkAttributeRenamer with the parameter shown in the screenshot.

image

Badge +6

No, sorry. I was updated the post. It´s better to understand.

Badge +1

Do you mean something like this:

Create a new attribute named with the value of anoher attribute:

imageimage

Userlevel 1
Badge +22

You may be looking for AttributePivoter, that performs a grouping of values in a single column, and aggregates the other values.

Badge +6

Do you mean something like this:

Create a new attribute named with the value of anoher attribute:

imageimage

Very good!

 

But the new attribute created don´t exposed automatically. It´s a problem.

Userlevel 5
Badge +29

Very good!

 

But the new attribute created don´t exposed automatically. It´s a problem.

This is stepping into dynamic workflows/schemas. You now need to create a schema feature with the correct schema and change your writer to accept a schema feature. Ofcourse, if you're wanting to use FME transformers after setting that new field it becomes problematic, but there are ways around it depending what you're wanting to achieve

 

https://community.safe.com/s/article/dynamic-workflow-tutorial-introduction

https://community.safe.com/s/article/dynamic-workflows-advanced-example-modifying-the-s

Reply