Skip to main content
Translating colors into values,

 

 

I have already highlighted this issue on other threads but I want to further elaborate it in a separate one.

 

 

In my work, each landuse is indicated by a hatch of particular color (in the AutoCAD). This color refers to a particular meaning as shown in the screenshot below.

 

 

 

 

 

 

As hatches are converted to polygons using the FME, I need to translate the color of each hatch into its meaning in Arabic and English and to store these values in two columns as shown in the screenshot below

 

 

 

 

 

Is SchemaMapper the best way to do so?

 

 

 

 

Thank you

 

 

Best

 

 

Jamal
I do not think the SchemaMapper is good choice in this case.

 

 

AttributeValueMapper

 

You can import the value mapping table in the parameters dialog. But the setting is static, so it's not suitable when the mapping rule should be determined at run-time.

 

 

If the mapping rule is dynamic, I think that joining tables (usind color  value as key) is suitable way. Major choices are:

 

FeatureMerger (read the table with the Excel reader beforehand)

 

Jointer

 

InlineQuerier
# correction for a typo.

 

Joiner
..i was wondering..did i miss the Jointer?

 

 

sounds like a cool transformer.

 

Legal in Colorado, yes?

 

 

 

Gio
Thank you Takashi.

 

 

The “joiner” works fine

 

 

 

 

Best

 

 

Jamal

Reply