Skip to main content
Solved

set writer destination at runtime


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
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings