span8
span4
span8
span4
This article is a great place to start if you’re interested in working with list attributes in FME.Consider this your gateway where you’ll find introductory information as well as links to FME List Attribute documentation, example tutorials with workspace templates, and other FME resources related to List Attributes and data manipulation.
Explore the headings below to learn concepts related to list attributes and how using list attributes can simplify working with multiple attribute values.
Lists are everywhere in FME.15 transformers are dedicated to list manipulation (plus more on theFME HUB), and over 80 transformers can produce lists.Some formats also support list type structures - notably XML and JSON.Using FME transformers and functionality, lists can be built manually, created automatically by a transformer, creted by some formats, or exploded back into single-value attributes.Transformers often create a list automatically as part of the output from their particular process, usually when attributes from various different features are grouped into a single feature.FME lists can be displayed and inspected in the Data Inspector or using the Logger transformer.
What is a list?Lists permit an attribute to store more than one value in a structured way.For example, a generic text field named水果
can store a value like “Apple, Orange, Pear” but cannot be easily divided into its constituent parts of “Apple” “Orange” and “Pear”.This is where a list attribute excels.If the same attribute was structured as a list, it could be broken down into:
Fruits{0}: Apple Fruits{1}: Orange Fruits{2}: Pear
The number represents the value’s (or element’s) place (or index) inside the list.Within this structure, lists can be reorganized, exploded into individual parts, analyzed statistically, or counted according to the number of elements, to name a few options.
Broadly, there are two types of list, simple and complex.A simple list is like the one above, Fruits.But what if we have both the common name and the scientific name.We'd then probably have a complex list:
Fruits{0}.name: Apple Fruits{0}.scientificName: Malus domestica Fruits{1}.name: Orange Fruits{0}.scientificName: Citrus X sinensis Fruits{2}.name: Pear Fruits{0}.scientificName: Pyrus
In most cases, the behaviour in list transformers is the same.
For more on lists in FME, please see the following documentation pages:
看看为深入了解在FME列表结构以及基于列表的变压器和工作流程的例子在下面的文章。亚搏在线每篇文章都包含一个主题的概述,采样工作区和数据,指令或工作流程的描述,以及大量的视觉效果,引导您完成的过程。亚搏在线
这个例子说明如何创建列表中手动属性,并介绍可以建立列出了几种常见的变压器。
一旦你有一个清单,还有很多可以操纵它的变压器。你会发现,操纵和在这篇文章中列出了分析工作区的例子。
你好,
我需要检索从一个平台上输入的信息。要做到这一点,我用的是变换“HttpCaller”用GET方法,我得到的文件JSON(response_body)的内容。
起初,这个想法将恢复从以下链接的所有文件(ID和状态):
https://www.demarches-simplifiees.fr/api/v1/procedures/12258/dossiers?token=VR5uoc8i2CcMVKbejP9vwtdA
而且,在第二步中,检索每个文件夹从以下网址获得表的详细信息:
https://www.demarches-simplifiees.fr/api/v1/procedures/12258/dossiers/268283?token=VR5uoc8i2CcMVKbejP9vwtdA
每个文件都有一个唯一的号码,所以我觉得这个属性必须是可变的。
有人能告诉我该怎么办?
谢谢 !
你好@bathie,
谢谢你的问题。这听起来像你可能会寻找与解析JSON或XML资源。与你相似这个的其他问题:https://knowledge.亚搏在线safe.com/questions/89271/nested-geojson-extraction.html?如果是,那么请考虑检讨这个问题和JSON教程或者XML教程。如果您还有其他问题,请使用新问题,为更好的可视性:https://knowledge.亚搏在线safe.com/questions/ask.html?space=155。谢谢!
Build Records from Name - Value Lists
Eliminate unused attributes from a source schema
Working with List Attributes: ListHistogrammer
Template: Convert KML name/value pairs from a list to new attributes
AIXM Airports to INSPIRE Air Transport Networks
SchemaMapper: Conditional Attribute Mapping
Create INSPIRE ATOM Download Service
Handling Local Timezones, UTC, Daylight Savings Time, and Leap Units
© 2020 Safe Software Inc |Legal