Skip to main content
Solved

How to use the "import" function to define attributes?

  • November 18, 2022
  • 2 replies
  • 67 views

Hi everyone,

 

I am trying to create a set of new attributes with the Attribute Creator. I would like to use the "import" option to bring the attributes from a CSV file. However, the transformer reads the attribute values as a "text" and not as Arimethic function (See picture for clarification ). Any idea on how to change that quickly?

Or any better idea to obtain the same result?

I mean create the following attributes:

 

Name Attribute

Y1 =A1+B1

Y2 =A2+B2

Y3 =A3+B3

Thanks in advance!.

 

question FME

Best answer by nielsgerrits

You can use the function @Evaluate() to do this. 

Create a CSV like 

Name,Value
A,@Evaluate(1+1)

Click Import...

Select CSV

Choose import from Attribute values

Select Name for New Arribute and Value for Attribute Value.

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

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • November 18, 2022

You can use the function @Evaluate() to do this. 

Create a CSV like 

Name,Value
A,@Evaluate(1+1)

Click Import...

Select CSV

Choose import from Attribute values

Select Name for New Arribute and Value for Attribute Value.


You can use the function @Evaluate() to do this. 

Create a CSV like 

Name,Value
A,@Evaluate(1+1)

Click Import...

Select CSV

Choose import from Attribute values

Select Name for New Arribute and Value for Attribute Value.

Thank you. It's working now.