Skip to main content
Solved

keep file names the same in the writer as they are in the reader:

  • September 12, 2019
  • 3 replies
  • 194 views

jhawks
Contributor
Forum|alt.badge.img+7
Easy...1259 .000 files to be written to 1259 .geojason files. I want to keep the file names the same (with the extension changed naturally). So file1.000 becomes file1.json etc etc.

Best answer by itay

Hi @jhawks,

Have a look at the fme feature attributes fme_feature_type or fme_basename.

You can use them in the writer fanout.

Hope this helps,

Itay

View original
Did this help you find an answer to your question?

3 replies

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • Best Answer
  • September 12, 2019

Hi @jhawks,

Have a look at the fme feature attributes fme_feature_type or fme_basename.

You can use them in the writer fanout.

Hope this helps,

Itay


jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • September 12, 2019

What do you put in the writer for the file name? Seems like it would have to be either a wildcard or an argument. C:\\geojson\\*.json ?


drc43
Contributor
Forum|alt.badge.img+11
  • Contributor
  • September 13, 2019
jhawks wrote:

What do you put in the writer for the file name? Seems like it would have to be either a wildcard or an argument. C:\\geojson\\*.json ?

Yeah, very similar. Just select the fme_basename for the writer file name. This then takes the file name of the input files and outputs files with the same name in the folder you've selected for your writer.


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