span8
span4
span8
span4
Hello,
I have a set of features,which have specific(but varying) attributes that I want to expose.All these attributes are uppercase,but all features do not have these attributes,and the names of the attributes vary quite a lot.The only thing they all have in common is being upperspace.I can filter them out with the PythonCaller,but I am unsure about how to input them to the AttributeExposer.
The only input I can give the AttributeExposer is to open a file and read from there.Seems like a big workaround to read all the attributes,filter them,then write to a file and then open it.
This is somewhat related tohttps://knowledge.亚搏在线safe.com/questions/30874/expose-format-attributes-with-values-only.htmlandhttps://knowledge.亚搏在线safe.com/questions/32483/dynamic-attributes-in-custom-transformer.html.
The short answer is that you can't,really.At least not easily without resorting to tricks.
You could either continue with the PythonCaller (my preferred solution),or consider a solution using the AttributeExploder,which will let you work with features having attribute names that are unknown when you design the workspace.Just be aware that the AttributeExploder route can be quite demanding on memory resources when
You can expose attributes using a featuremerger (not sure whether this is by accident or design).
If you have a file which has all the attributes you wish to expose,you can merge with the data (using 1 so everything is merged) with the featuremerger settings set to accumuldation mode - merge supplier and conflict resolution - use requestor.
Search regex in Python caller5 Answers
unpacking python array into FME attributes3 Answers
[Python] How to access from master workspace to fme.featuresWritten from slave workspace?2 Answers
Extract band to new raster by Python API in FME 20171 Answer
Pulling my hair trying to figure out what's going on with FME and encoding in Python.2 Answers
© 2019 亚搏在线Safe Software Inc |法律