dictCost = ={"att1::att2::att3" : att4},{"att1::att2::att3" : att4},{"att1::att2::att3" : att4}]
I know that I can do this in Python, but can I build a dictionary or string-indexd array this way in "straight" FME?
Thanks
dictCost = ={"att1::att2::att3" : att4},{"att1::att2::att3" : att4},{"att1::att2::att3" : att4}]
I know that I can do this in Python, but can I build a dictionary or string-indexd array this way in "straight" FME?
Thanks
I would look into the string concatanetor or attribute creator for that for the FME way, otherwise you can always use python in a python caller.
FME cannot build a string-indexed dictionary except in Python script. But in many cases, I think a dictionary-like functionality can be realized via FeatureMerger.
If those three attributes were concatenated, the features itself can be considered as a dictionary. That is to say, you can append "att4" associated with a specified key value to any feature using a FeatureMerger.
Is this approach useless in your situation?
Takashi
attr1::attr2::attr3
...key matches, then I have attr4 as the value.
Still, it would be nice to have an FME string-indexed array structure.