Skip to main content
Solved

How to customize Fanout file names

  • June 19, 2018
  • 2 replies
  • 90 views

Forum|alt.badge.img

Hi,

I have an workbench where I used a fanout in a geojson writer. The geojson writer has 23 features and each feature is fanout based on the fme_feature_type where my Fanout Expression is "@Value(fme_feature_type)". The result is great, it created the files I need in geojson format in the folder specified in the "Destination" property of the writer. But each fanout dataset is named with the feature name. So if my fme_feature_type name is gis.auto_recloser, the fanout file is named gis.auto_recloser. But I would like it to be named

auto_recloser_delete.geojson instead. Is there a way to customize the fanout dataset file name?

Best answer by fmelizard

Hi @li_fme Use a StringConcatenator to build the names your want in a new attribute, then fan-out on that.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • Best Answer
  • June 19, 2018

Hi @li_fme Use a StringConcatenator to build the names your want in a new attribute, then fan-out on that.


Forum|alt.badge.img
  • Author
  • 8 replies
  • June 19, 2018

Hi @li_fme Use a StringConcatenator to build the names your want in a new attribute, then fan-out on that.

thanks, @DanAtSafe. I got it figured out that I need to update the fanout expression to @ReplaceString(@Value(fme_feature_type)_deletes.geojson, "gis.", "")