A Dataset Fanout delivers data to the same feature type, but in multiple datasets. Using the elevation example again, here the output is a different dataset for each elevation value:
The result of this fanout is a series of DXF datasets, each of which has one elevation’s worth of contours on one layer.
Setting a Dataset Fanout
A Dataset Fanout is defined in the Navigator window in Workbench, just below the writer’s dataset parameter:
Double-clicking the Fanout Dataset parameter opens a dialog in which to define the folder to write to and the Fanout Expression to use. It defaults to the original file name:
To achieve a fanout (a different file per attribute value) edit the Fanout Expression to include an attribute name, such as this:
In this case, each different neighborhood produces a separate file of park features.
|Miss Vector says…|
Fanouts are an important part of writing data with FME, so tell me, which of these statements are true?
1. You can have both a Feature Type Fanout and a Dataset Fanout in the same workspace
2. You can use a Feature Type Fanout with a database format, but not a Dataset Fanout
3. A fanout expression can be an attribute, or a constructed string, but not a user parameter
4. A fanout cannot be based on a format attribute such as fme_color