Skip to main content
Solved

set writer destination at runtime

  • January 5, 2015
  • 2 replies
  • 17 views

Hi all,

 

 

As a newbie, I'm having a hard time getting my head around a possible simple task. I need to write features to different destination folders created at runtime.

 

 

My workspace basically generates per feature an unique id (uuid), stores it as attribute and creates in a published directory a subfolder with that name. The next step would be to write each feature in its newly created subfolder as a SHAPE. I couldn't figure out a way to define the writer's destination at runtime. I already unsuccessfully tried a fanout

 

 

I expect this task to be rather a standard situation but, due to my lack of experience, didn't find a solution. Your help is greatly appreciated!

 

 

Cheers,

 

Alain

 

 

Best answer by david_r

Hi,

 

 

sounds like a case for the dataset fanout (http://fmepedia.safe.com/articles/How_To/Fanout#heading_toc_j_2).

 

 

David
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

david_r
Celebrity
  • Best Answer
  • January 5, 2015
Hi,

 

 

sounds like a case for the dataset fanout (http://fmepedia.safe.com/articles/How_To/Fanout#heading_toc_j_2).

 

 

David

  • Author
  • January 5, 2015
Thanks David, it's working now like a charm! I wasn't using the fanout properly (feature type instead of dataset fanout) and did only get filenames as concatenated but no subfolders. Thanks for the quick help!