span8
span4
span8
span4
This article is part of the tutorial:Transformers for Working with List Attributes
A number of FME transformers are specifically designed to work with list attributes - ListHistogrammer is one of them. These can be used to create, manipulate, transform, and analyze lists. Lists are created in FME with a wide range of transformers, seeCreating Lists Using Transformersfor more details.
Workspace examples:WorkingWithLists2020.fmwtandListHistogrammer2020.fmwt
TheListHistogrammerbuilds a histogram of the values found in a list and returns these in a new list attribute. The new list will be sorted so that the value with the most occurrences will be first. Using this transformer with the data in theWorking With Listsworkspace, we can easily find the park with the most trees as well as find out how many of each species is represented within each park. As a bonus, you can specify your own histogram list name, making it possible to have multiple histograms on a single feature.
Here we’re counting the occurrence of each tree species within a single park using theListHistogrammer:
In theListHistogrammerworkspace, the user needs to count how many features there are of each type (zone
) in a set of zoning data. This can be achieved by creating an artificial aggregate and list of the source data, and subsequently running it through theListHistogrammer.
The workspace actually goes one step further: it uses a custom transformer to convert the histogram into a set of attributes and values. It also shows an interesting use of theAttributeExposerto import the values from the Zoning data so that the newly generated attributes can all be exposed and inspected.
The data used here originates from open data made available by theCity of Vancouver, British Columbia. It contains information licensed under the Open Government License - Vancouver.
Build Records from Name - Value Lists
Tutorial: Working with List Attributes
Creating Lists Using Transformers
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
ExpressionEvaluator (2014 SP4 or earlier)
© 2020 Safe Software Inc |Legal