attributerenamer.
典型的用途
- Change the name of an existing attribute
How does it work?
Blank rows are provided where you can select attributes to rename and enter the new names.. One or more pairs can be added, and all features that pass through the transformer are modified according to these selections. The values of the attributes are not changed, and you can optionally provide default values to be applied to the output where input values are missing.
In this example, several attributes are renamed at once. “GlobalID” undergoes a case change to become “GLOBALID”, and three more attributes are renamed.
更改反映在变换器中 - 请注意,重命名的属性在列表顶部默认出现。
使用说明
- 考虑使用AttributeManager反而
- 要使用前缀,后缀和模式重命名属性组,请考虑使用bulkattributerenamer.
- The AttributeRenamer can be used for simple renaming oflist属性
配置
输入端口
具有属性的功能。
Output Ports
Features with the renamed attributes and original values. Renamed attributes will appear at the top of the list.
Parameters
第一次打开AttributerEnamer时,此区域将包含一个空白行,您可以在其中选择或输入要重命名的属性。添加附加行作为参赛作品。
输入属性 |
输入或从其中一个下拉列表中选择现有属性的名称。 |
输出属性 |
Enter a new name for the attribute. |
默认值 |
可选:要将输出属性设置为输入属性在功能上不存在的值(默认值)。如果默认值为空,则该功能上不存在输入属性,则不会创建输出属性。 See定义值对于设置这些的各种方法。 |
重命名名单
The AttributeRenamer can be used to rename list attributes. The number of parts in the Input Attribute and Output Attribute must be the same, as shown here:
输入属性 |
输出属性 |
好? |
---|---|---|
inlist {} |
差价{} |
是的 |
内清晰{}。三{}。零件 |
差价{}。Samenum {}。零件 |
是的 |
内清晰{}。三{}。零件 |
差价{}.two |
不- Output has fewer parts. |
要重命名列表中的单个元素,请添加数字 -
输入属性 |
输出属性 |
---|---|
_trees{0}.Species |
FirstSpies |
对话框选项
行重新排序 |
选择包括:
|
筛选 |
Start typing a string, and the list will only display attribute names matching those characters. This only affects the display of attributes within the transformer - it does not alter which attributes are output. |
Import |
导入按钮将使用从数据集读取的一组新属性填充变压器。在AttributerEnamer中,您可以从外部数据集导入输入和输出属性名称。如果变形式器已包含重命名对,则将它们附加到现有列表中。 |
编辑变换器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变压器参数菜单选项.
定义值
There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.
使用文本编辑器
文本编辑器提供了一种方便的方法来构建来自各种数据源的文本字符串(包括正则表达式),例如属性,参数和常量,其中结果直接在参数内使用。
使用算术编辑器
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。
条件值
根据通过或失败的一个或多个测试条件设置值。
内容
表达式和字符串可以包括许多函数,字符,参数等 - 是否直接在参数中输入或使用其中一个编辑器构造。
These functions manipulate and format strings. | |
文本编辑器中提供了一组控制字符。 | |
两个编辑器都有数学函数。 | |
这些运算符可在算术编辑器中使用。 | |
这些主要是特定于特征的值。 | |
FME and workspace-specific parameters may be used. | |
Working with User Parameters | 创建自己的可编辑参数。 |
参考
Processing Behavior |
|
Feature Holding |
不 |
依赖性 | 没有任何 |
FME Licensing Level | FME基本版及以上 |
别名 | |
历史 | |
类别 |
FME Knowledge Center
FME知识中心是演示,How-TOS,文章,常见问题和更多的地方。获取您的问题的答案,从其他用户学习,并建议,投票和评论新功能。
搜索所有结果关于attributerenamer在FME知识中心。