Shape Filename Inputter
From Fmepedia
| This page contains an example FME Workspace created by an fmepedia user. See the attached files list at the foot of this page for the zip file containing this workspace. |
Created by: Mark Ireland
In Shape format the name of an output file is the name of the feature type - so (rather than being user-defined) takes the name of the source feature type by default.
However, some users may wish to explicitly set the name of the feature type being written to on a case-by-case basis. This workspace shows how this can be done.
An attribute is created and the value published so that the user can set it at run-time. The destination simply has a Feature-Type fanout applied to fanout by the user-defined attribute: for example set the attribute to myfilename gives an output of myfilename.shp
You should use caution since if data is not all the same geometry type there will be problems writing to a single shp file.
