Skip to main content

Good Day FMEers,

I am trying to create a text document containing the results of a number of data validation tests. I would like the results of each test to form a section in the text document. I have concatenated the results to for a single attribute called results and removed the rest. The document would look something like this:

The way I thought about achieving this in FME was to turn the results of each test into a single multi-line feature then pass that to an attribute creator to add the title. I tried the aggregator but with no success. I also thought about using lists but I'm not sure how the get the data back out in my desired form.

I would appreciate any help to achieve my aim or suggestions on any alterative methods.

Thanks

Hi

Have a look at the Aggregator to create multipart-features. Set the Group By to your "single attribute".

If you want to create one single contiguous line from a collection of smaller line segments, look at the LineJoiner (possibly prefixed by a Snapper to line up the start/end vertices).

David


Hi

Have a look at the Aggregator to create multipart-features. Set the Group By to your "single attribute".

If you want to create one single contiguous line from a collection of smaller line segments, look at the LineJoiner (possibly prefixed by a Snapper to line up the start/end vertices).

David

Hi @david_r,

Thank you for your answer. I tried the aggregator but without success. I will update the question and try explain better what I am trying to do.


you can create a multiline (insert required newlines etc.) string and assign it to a attribute.

At end of test or (text)attributecreation use AttributeFileWriter to write it to a txt file. Set to "append to file". And use same sourceattribute and Target FIlename each time.

You can also use start/shutdown script to do same.

(i am assuming your reference to multi-line feature means multiline text.)


Hi,

If each feature has a single test result (text string) as an attribute called "results", you can concatenate them using the Aggregator with these parameter settings.

  • Attributes to Concatenate: results (the attribute that stores a single test result)
  • Separator Character: <newline>

Takashi


Hi,

If each feature has a single test result (text string) as an attribute called "results", you can concatenate them using the Aggregator with these parameter settings.

  • Attributes to Concatenate: results (the attribute that stores a single test result)
  • Separator Character: <newline>

Takashi

That's excellent. Thank you @takashi it works a treat


Reply