span8
span4
span8
span4
This type of workflow creates an attribute schema within a workspace using List Attributes.列表属性 are FME's way of allowing multiple values within a single attribute.Writers in Dynamic mode check the first feature of each incoming Feature Type for the presence of a specific list attribute.If this list is found on the first feature, then it is used to generate the output schema for the Writer.
In this example, a workspace is created to handle city park information.The requirement is to translate any city park dataset into a new AutoCAD .dwg file with a new schema.This new schema should only consist of park name information while everything else is to be removed.If a standard dynamic workspace was utilized, the output schema would mirror the input dataset, which is not what is needed in this case.
The list is can be generated by FME transformers which create attributes, such as, the AttributeCreator and PythonCaller.It can also be generated automatically by the AttributePivoter transformer and a special Reader named “Schema (any format)”.In order to use this functionality to create an output schema, ensure the list is created with proper syntax.
The list elements are formatted as follows:
The list name is attribute{} and every attribute on the schema is represented as an element.Each element has 2 attributes per element 'fme_data_type' and 'name'.
'name' is the name of the attribute to be included in the schema.
'fme_data_type' is the data type of the attribute.
Valid data types include:
字符字段: fme_varchar(width), fme_char(width), fme_char
整型字段: fme_uint8, fme_int16, fme_uint16, fme_int32, fme_uint32, fme_int64, fme_uint64
数字字段: fme_decimal(width,decimal), fme_real32, fme_real64
日期 - 时间域: fme_datetime, fme_time, fme_date
其他领域: fme_buffer, fme_boolean
The desired format for the CityPark dataset should look something like this:
To make sure the new schema gets picked up, the writer must be in dynamic mode as shown below:
The Writer requires that a Reader is selected even if it will not be used for schema generation purposes.如果工作流程没亚搏在线有一个阅读器,添加一个空读者到工作区(A哑读者有没有强制性的参数进行设置),并请在此处选择:
下载包含两个示例工作区的写出动态模式与来自用户的参数生成的属性。第一个使用的PythonCaller变压器和第二个使用AttributeCreator变压器创建属性列表必需的。
作家只会检查每个要素类型的第一功能的用户列表,因此没有必要这个列表添加到每一个功能,使用采样变压器的第一特征,从其他部分隔开。
@olivermorris听起来像一个有趣的项目。我们很想知道更多关于你正在使用的格式和工作流程。亚搏在线我建议在这里的社区发帖:亚搏国际在线官网https://knowledge.亚搏在线safe.com/questions/index.html随着你正在寻找与FME做一点更多的细节和你在哪里卡住了。社区和我亚搏国际在线官网们的团队很乐意进一步提供帮助。
Dynamic Workflows: Advanced Example - Modifying the Schema Feature
Dynamic Workflows: Destination Schema Derived from Multiple Sources
Dynamic Workflows: Destination Schema is Derived from a Schema Feature
Using Feature Type Fanout with the Shapefile format
Template: Convert KML name/value pairs from a list to new attributes
Dynamic Workflows: Destination Schema is Derived from an External Dataset
Command Line Tools Integration
Dynamic Workflows: Destination Schema is Derived from a Lookup Table
© 2020 Safe Software Inc |Legal