Skip to main content

Functionality suggestion:

 

I'd like to see the ability to add additional destinations in one writer. This is where I want the same output (with the same output file name in the same format) at the end of a workspace to go to to two (or more) destinations. At the moment I would need to add additional writers and set the additional destination in that. It would be great to achieve it on one writer

Hi @scarter​ ,

There are a couple of ways you could achieve this with a single writer (I've attached a simple example in case you want to try it out).

  1. Using a Cloner and a Fanout
  2. Using a FeatureWriter and a FileCopy Writer
  3. Combination of the two above (clone the summary feature and define your paths for each feature)

Not sure what the performance would look like for each but I'd imagine using the file copy example would be fastest since you are only writing the data once, then copying the file to a new directory.

Regardless, this is a great suggestion and it would be awesome if you could post this along with your use case in the ideas section!


Hi @scarter​ ,

There are a couple of ways you could achieve this with a single writer (I've attached a simple example in case you want to try it out).

  1. Using a Cloner and a Fanout
  2. Using a FeatureWriter and a FileCopy Writer
  3. Combination of the two above (clone the summary feature and define your paths for each feature)

Not sure what the performance would look like for each but I'd imagine using the file copy example would be fastest since you are only writing the data once, then copying the file to a new directory.

Regardless, this is a great suggestion and it would be awesome if you could post this along with your use case in the ideas section!

Thanks for your response.

I notice that Cloner copies the objects in the output based on the number I enter. That’s good to know about and I can imagine places where that could be useful, but it’s not what I’m looking for in this instance.

I’ll look into Feature Writer <https://urldefense.com/v3/__https:/community.safe.com/s/article/basic-featurewriter-example__;!!Ou-zFulSALS7ubxZ2oj45Dg!HeTRvDjwzc0iQiGWKuBcbFmIqt4xb0mzeP7KOE3LmH9F_MJWOcehztx58JoyOVS3hTeG9K0O-7c$> and a File Copy Writer<https://urldefense.com/v3/__https:/docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/filecopy/filecopy.htm__;!!Ou-zFulSALS7ubxZ2oj45Dg!HeTRvDjwzc0iQiGWKuBcbFmIqt4xb0mzeP7KOE3LmH9F_MJWOcehztx58JoyOVS3hTeGkUAOmjM$>. Thanks.

I’ve now posted to the Ideas section. I can see how adding additional destinations within the one writer (where appropriate) would be a simple approach.


Thanks,
Stuart

Reply