你在这里: Attributes > 列表重命名器

列表重命名器

Renames or promotes list names or components.When promoting or renaming, if the resulting name collides with an existing attribute name, the existing attribute will be overwritten.

For the discussion below the following terms are introduced:

  • 组件–这是属性名称的一部分。例如,在list{}.blat{}.foo,的re are 3 components. Two components are lists:list{}andblat{}.One component is not a list:.
  • 子组件–这是列表的一个组件。因此,在list{}.blat{}.foo,blat{}是的子组件list{}. 同样地,是的子组件blat{}.
  • 结构化列表–子组件包含多条数据的列表。结构的元素表示为福{}.aor福{}.b.

参数

Examples

例1

如果要处理的列表somelist{}传入功能包含:

somelist{0}。length = 7.3

somelist{2}.length=5

somelist{3}.height = 6

如果somelist{}是renamed toanotherName{},的result will be:

anotherName{0}.length = 7.3

anotherName{2}.length = 5

anotherName{3}.height = 6

例2

如果要处理的列表somelist{}.listTwo{},的List ActionPromote – listTwo{1},传入功能包含:

somelist{0}。listTwo{0} = 0

somelist{0}.listTwo{1}=1

somelist{0}。listTwo {3} = 2

Then the result will be:

somelist{0}.listTwo=1

例3

如果要处理的列表somelist{}.listTwo{},的List ActionPromote – listTwo{1}传入功能包含:

somelist{0}。listTwo{0}.length = 0

somelist{0}。listTwo{1}.length = 1

somelist{0}。listTwo{1}.height{0} = 3

somelist{0}.listTwo{3}.length=2

Then the result will be:

somelist{0}。length = 1

somelist{0}.高度{0}=3

例4

如果要处理的列表somelist{},的List ActionPromote All Subcomponentsand incoming feature contains the following:

somelist{0}。length = 7.3

somelist{2}.length=5

somelist{3}.height = 6

The result will be:

length{0} = 7.3

长度{2}=5

height{3} = 6

Additional Resources

More Information on Lists

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, seeTransformer Parameter Menu Options.

Transformer Categories

Attributes

Search FME Knowledge Center

Search for samples and information about this transformer on theFME知识中心.