span8
span4
span8
span4
Hi All,
Does anyone know how to set the FORMAT for a Generic Writer at run-time?I have a generic reader and want to output to whatever format the input data was.Is there a good way to do this?
I've tried getting the input fme_format_short_name and using that as an attribute,as well as OUT_FORMAT,OUTPUT,FORMAT,and OUTPUT_FORMAT.But all fail with the tautological:
ERROR |Generic Writer: Cannot use the Generic writer to create a Generic writer.Please select a different writer for the FORMAT keyword.
Thoughts?Thanks,
Jonathan
Yes,if you have a generic reader and expose the fme_basename,fme_format_short_name and fme_basename,then use a FeatureWriter,in the Writer Parameters set the Output Format to fme_format_short_name and the Base filename to fme_basename (unless you want a different output file name,in which case set it to an attribute containing that name)
In the feature type parameters set the Feature Type Name to fme_feature_type,Geometry from Schema Definition,Check off Dynamic Schema,and set the Schema Sources to your generic reader.
If you would like a different Feature Type Name,then set that to whatever attribute contains the name,but the Schema Definition Name must be set to the fme_feature_type.
© 2019 亚搏在线Safe Software Inc |Legal