[GIS] How to map a range of values to a single value in FME

fields-attributesfme

A dataset with a set of points has an attribute called HEIGHTS which is filled with numbers like, 10.8, 0.4 and 150.6 etc… I want to transform this dataset to a shapefile. In the transformation I want to add a new column to the shapefile which will need to contain a color code.

How can I map the height values to this color code?

For example all heights between 5-10 should have the color dark blue, all heights between 10 and 20 should have the color light blue etc……
I tried to use the valuemapper transformer, but it only seems to work for 1:1 mappings.

I am using FME 2009. This means that I cannot use the AttributeRangeMapper and AttributerRangeFilter transformers. Can I conclude that what I want is not possible in FME 2009 and I should look at a newer version on FME?

Best Answer

FME 2009 supports Tester transformers; you could chain a bunch of those together (one for each range) and tag features that pass accordingly while passing fails onto the next tester for further evalutation.