Skip to main content
Solved

Issue with AttributeValueMapper and Cached Values in FME

  • August 27, 2024
  • 1 reply
  • 94 views

gattogis
Contributor
Forum|alt.badge.img+1

Hi everyone,

I'm facing an issue with the AttributeValueMapper transformer in FME. My goal is to remap all values in the "abbreviazione" field using values I want to input manually. However, I've noticed that I'm unable to set the distinct values of the "abbreviazione" field as input values because the transformer doesn't seem to offer the option to read cached values.

The only option I'm given is to import the values from an external dataset, but I'd like to avoid adding too many steps, especially since in other cases, I was able to select the distinct values directly from the layer I'm working on (or at least I think so...).

Has anyone encountered a similar issue or have any suggestions on how to proceed? It would be really helpful to understand how I can retrieve and manage these distinct values within the workflow to use them in the remapping.

Thanks in advance for your help!

 

 

Best answer by bwn

If it is a long list that want to avoid typing in manually, then can temporarily write the list out with a FeatureWriter to the equivalent of a “cached” file format of “FME Feature Store (FFS)”.  This will be an exact replica of what is cached by the workspace.

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/ffs/ffs.htm

 

To be honest though any format would work though as a temporary cache file: Parquet, CSV etc.

This can then be used to “Import” the list into AttributeVaueMapper

View original
Did this help you find an answer to your question?

1 reply

bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • Best Answer
  • August 27, 2024

If it is a long list that want to avoid typing in manually, then can temporarily write the list out with a FeatureWriter to the equivalent of a “cached” file format of “FME Feature Store (FFS)”.  This will be an exact replica of what is cached by the workspace.

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/ffs/ffs.htm

 

To be honest though any format would work though as a temporary cache file: Parquet, CSV etc.

This can then be used to “Import” the list into AttributeVaueMapper


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings