span8
span4
span8
span4
I'm currently reading from and writing to the same GDB.What I would like to do is rename the filename after the workspace is complete with certain attribute values that I had set from within the workspace.The only way I came across was using a Python shutdown script and I'm still very new to Python and I'm having some trouble in getting started.
I have 5 attribute values all set within the workspace which I would need to use for the final file naming convention.
SR,AFE,PNUM,DATE
The final naming convention would be: DB_TGS_SR_AFE_AP_PNUM_00_DATE.gdb
Any help with this would be greatly appreciated.Thanks!
Hi@madwarren,After writing the file with the FeatureWriter,you can use a SysteemCaller transformer to rename the output with aDOScommand,old fashioned but it works.
Thanks@takashifor your reply.I tried using the Dataset Fanout option in the writer as you suggested and it just created multiple gdb's on a feature basis fanout.Do you think the problem is that my writer is a Dynamic GDB?
Also,I'm actually using the FeatureWriter in my workspace for an Excel output.Using that will still create the correct output file,but not rename the original file which is what I'm trying to do.
Any other suggestions?Thanks for the help.
Hi@madwarren,if you use the Fanout Dataset functionality of the writer,you can write the features into your desired destination dataset directly and don't need to rename afterword.
Alternatively,the FeatureWriter transformer can also be used in FME 2016+.
© 2019 亚搏在线Safe Software Inc |Legal