Question

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

  • 13 February 2020
  • 4 replies
  • 220 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

Userlevel 2
Badge +17

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

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

Userlevel 4
Badge +25

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

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