Skip to main content
Solved

Is it possible to set the format of a FeatureWriter based on user parameters?


tb09114
Supporter
Forum|alt.badge.img+23

I would like to convert ecw files into other raster formats, and since I do not know what output format other users prefer, I would like to provide a public user parameter with a list of available raster formats in FME, and use the parameter to specify the format used in the FeatureWriter.

 

Looking at the FeatureWriter I cannot see the possibility of dynamic, or even a selection of output formats. It also seems rather cumbersome to get a list of all raster formats FME is able to write.

 

Is there a possibility to tweak the FeatureWriter to take the format from a user parameter list?

Best answer by j.botterill

I think you on the Feature writer, may need to select Format = Generic (Any Format).

You can specify the datasets as something.zip

dynamic_anyFormatObviously a dynamic writer needs the Schema and featuretype ports connected to the FeatureWriter

You can setup a User Paramater > Choice.

Populate the dropdown by "Import"ing them from Writer Formats

ImportingFormatWriterTick them on imageImportantly, the any format generic 'paramater's you'll need to set the User Parameter for the output formatimageor in the example above, I used a parameter fetcher to make an attribute and passed that to the writer

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

2 replies

j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • Best Answer
  • August 21, 2023

I think you on the Feature writer, may need to select Format = Generic (Any Format).

You can specify the datasets as something.zip

dynamic_anyFormatObviously a dynamic writer needs the Schema and featuretype ports connected to the FeatureWriter

You can setup a User Paramater > Choice.

Populate the dropdown by "Import"ing them from Writer Formats

ImportingFormatWriterTick them on imageImportantly, the any format generic 'paramater's you'll need to set the User Parameter for the output formatimageor in the example above, I used a parameter fetcher to make an attribute and passed that to the writer


tb09114
Supporter
Forum|alt.badge.img+23
  • Author
  • Supporter
  • August 21, 2023

Thanks a lot guys!


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