Skip to main content
Solved

Fanout expression creating two text files

  • March 19, 2018
  • 1 reply
  • 9 views

Forum|alt.badge.img

I am trying to create xml files for metadata with the filename of a gdb forming part of the xml output filename. The fanout expressions are:

@Value(gdb_name)_gdb_metadata.xml

@Value(gdb_name)_lidar_metadata.xml

@Value(gdb_name)_imagery_metadata.xml

However, this creates two xml files per output, one empty but with the correct filename, and one without the @Value(gdb_name) but with the correct content. I have tried to feed in the @Value(gdb_name) earlier on in the process but this does not work.

Best answer by redgeographics

Right now you are in fact writing 2 features to each output: one with the correct date set and one with the rest of the attributes. Since they have different values for the fanout attribute you end up with 2 output files per writer.

You'll need to join the output of the Date extraction bookmark to the output streams. An unconditional FeatureMerger will do the trick.

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

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • Best Answer
  • March 19, 2018

Right now you are in fact writing 2 features to each output: one with the correct date set and one with the rest of the attributes. Since they have different values for the fanout attribute you end up with 2 output files per writer.

You'll need to join the output of the Date extraction bookmark to the output streams. An unconditional FeatureMerger will do the trick.


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