Thanks Steve
Thanks Steve
It would be possible to make something with an AttributeExploder and a looping custom transformer, but a PythonCaller is probably the fastest and easiest solution, as SigTill also suggests. Here is an example:
import fmeobjects def global_string_replacer(feature): attributes = feature.getAllAttributeNames() for attrib in attributes: value = feature.getAttribute(attrib) if str(value).strip() == "-99": # Search feature.setAttribute(attrib, "") # Replace
It is easy to convert this into a custom transformer where the search and replace strings are given as parameters, if necessary.
To read all the features classes in a File Geodatabase, you could use the reader "Schema (Any Format)" and then pass the list of feature class names to a FeatureReader.
David
Thanks David and others
Cheers Steve
The PythonCaller is an incredibly powerful transformer once you "get" it, I can heartily recommend spending some time to understand its capabilities!
Here are some starting points:
David