Skip to main content
Question

Read Multiple Files in a folder ... Transform Data ... Write Multiple Files to a different Folder

  • February 13, 2020
  • 4 replies
  • 992 views

Apologies for asking what I expect is going to be a very basic question. However I would like to read all files of a particular format (eg dxf) in a folder, apply a coordinate reprojection to them and then output them to a different folder. To read the files from a particular folder I believe I would use the Directory and File Pathnames Reader? To apply the reprojection transformation I would use the csmapreprojector, however to write the many files (eg dxf) out to a different folder I am not 100% of the methodology (and or writer) for that.

Many thanks in advance

4 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • February 13, 2020

You can set one or more folders as Dataset of the writer to read all dxf files under the specified folder(s).

Regarding how to output multiple files, see the Fanout functionality.

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/fanout_about.htm


  • August 28, 2020

I have same question, understand that the reader can show a folder that contains say 5 files how do I write out 5 files to an output folder, I cant see the equivalent "select multiple folders\\files" on the writer


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • August 28, 2020
bakes wrote:

I have same question, understand that the reader can show a folder that contains say 5 files how do I write out 5 files to an output folder, I cant see the equivalent "select multiple folders\\files" on the writer

The equivalent would be something called a "fanout". Look for the fanout option on the writer parameters in the Navigator window. You choose an attribute that defines the name to write to. Usually it is the same as the incoming dataset; eg fme_dataset


smfks911
  • August 8, 2022
mark2atsafe wrote:

The equivalent would be something called a "fanout". Look for the fanout option on the writer parameters in the Navigator window. You choose an attribute that defines the name to write to. Usually it is the same as the incoming dataset; eg fme_dataset

Hi @mark2atsafe​ wondering is it possible to fan out on multiple tables of a server for similar type of transformation task?


Reply


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