Skip to main content
Question

Generating writer sub-folder when using the dynamic schema

  • April 9, 2013
  • 2 replies
  • 82 views

Forum|alt.badge.img
Hi everyone,

 

 

If I'm using the Dynamic Schema to write out, can I create a sub-folder based on input formats or elsewhere?  I've got a workbench I want to publish to FME server, it's quite basic. It takes shp files, runs them through a GeometryFilter and then adds appropritate statistics, i.e. for points it add the coordinates, for polygons it adds areas, etc.

 

 

They write out to three different destination folders using dynamic schema:

 

 

\\data\\Tasks\\Geometry_Statistics\\Writer\\Points

 

\\data\\Tasks\\Geometry_Statistics\\Writer\\Polylines

 

\\data\\Tasks\\Geometry_Statistics\\Writer\\Polygons

 

 

These all appear as published parameters in FME server, what I'd like to do is have it so users can just specify:

 

 

\\data\\Tasks\\Geometry_Statistics\\Writer\\

 

 

with FME doing the rest, i.e. dynamically creating the sub-folders.  I've worked out you can link the destination to a parameter, but I can't see how you can make that parameter kind of dynamic, i.e. choose between geometry and therefore folder names.  I don't know how to pass this information onto the writer.

 

 

The other option is that I use the fanout but I'm not entirely sure how to do it that way either!  I can concatenate a folder address, but not sure how to add this to the destination direction parameter (if at all possible).

 

 

Thanks.
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
  • April 9, 2013
Hi,

 

 

I believe the easiest is to use a fanout dataset:

 

 

 

 

You can either expose and use "fme_geometry" from the reader directly or use an AttributeValueMapper to transform the value into something more suitable.

 

 

David

Forum|alt.badge.img
  • Author
  • April 10, 2013
I didn't know you could fanout and use the dynamic schema at the same time, you learn something new every day!  Thanks (again) David.