Skip to main content
Question

Generic Writer questions


jhawks
Contributor
Forum|alt.badge.img+7
When adding the Generic Writer into the Workspace I dont seem to be able to select multiple formats to write to. I can only pick one. 

 

 

FME Desktop 2013 Build 13263

 

 

I have public web forms now but whichever format the user picks from the drop down menu it writes to shape. Because I only have Shape writers in the workspace. So I need to replace the Shape writer with Generic Writer and have it be able to write to shape, file gdb, dxf, dgn. 

 

 

https://fmeserver.ncd.noaa.gov/encdirect_extract_approach.html

3 replies

david_r
Celebrity
  • May 14, 2013
Hi,

 

 

that is correct, you can only specify one output format in the Generic Writer. You could, however, publish the format as a public parameter, letting the users select the output format themselves.

 

 

The other strategy would be to have one dedicated Writer for each output format and using a Tester / TestFilter for route your features to the desired Writer, e.g. based on a published parameter.

 

 

David

jhawks
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • May 14, 2013
I have Generic Writer in the navigator and published the format as public parameter, but regardless of which format they select it writers to shape. If you use the generic writer a writer in the navigator, what do you use a writer in the workspace? See attached. http://ocs-gis.ncd.noaa.gov/encdirect_data/generic_writer.png

david_r
Celebrity
  • May 14, 2013
Hi,

 

 

Which values have you tried passing to the published parameter "format"? An example would be helpful.

 

 

It also seems your workspace could be a case for dynamic schema. Take a look at this article by Mark Ireland for more details. Unless your input and output schema never changes, it could save you a lot of effort.

 

 

David

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