创建和设置属性
创建属性和设置值可能是FME中使用的主要属性功能。When an attribute is created its value can be set in any one of a number of ways.
能够创建属性并设置其值的变压器有:
- 属性创建者
- 属性管理器
attributeCopier和attributeRenamer变压器可以设置属性值,但前提是它已经存在。
属性管理器
对于大多数业务,我们将集中在属性管理器上,下面是变压器的简要介绍。
“属性管理器参数”对话框有许多字段:输入属性,输出属性,属性值,和行动。Uniquely among attribute-handling transformers,它将自动填充与其关联的属性的详细信息:
操作字段可以由用户设置,但在对其他字段进行更改时也会自动设置。
手动创建属性
通过在输出属性字段中输入新的属性名,它将在输出中创建。
课文
设置固定属性值
固定的(或)常数) value for an attribute can be created by simply entering a value into the Attribute Value field:
在这里,for example,a new attribute called City is being given a fixed value of Vancouver.
然而,还要注意,现有属性neighhoodname也被分配了一个固定值。It is being given the value "Kitsilano".注意如何在该字段中输入值,“操作字段已自动更改为”什么也不做“到”设定值“。
除了输入这样的设定值,可以用多种不同的方法构造属性值。