ValueMapper Example
From Fmepedia
The attached workspace shows an example use of the ValueMapper transformer.
In this example a feature is generated with a random type (road, river or railroad) and with a random activity assumed to have taken place to it (a code numbered 1 to 4). The first ValueMapper transformer assigns a colour according to the feature type - roads are red; rivers, blue; railroads, black. The second ValueMapper transformer assigns a status according to the activity code - 1 = current, 2=under review, 3=revised, 4=deleted.
In other words the ValueMappers are being used as a simple lookup table. This is a common technique used to map source features to a certain symbology according to their original feature type (layer).
You don't have to look too closely to realize there is actually a third ValueMapper transformer - it's one of the transformers used to generate the sample data. See if you can figure out what it is doing.
Workspace Screenshot
