Setup:
I have some input data (SHAPE) which I use a Clipper transformer on. Depending on the result of the Clipper, I assign a value to an attribute. In the end I assign the two results/streams to a SHAPE writer.
Problem:
When I run the project my resulting SHAPE file has no attributes.
Observations:
- If I open my output (by clicking on the arrow/triangle next to the OUTPUT) on the transformers before my writer, the attributes are available and the same for both the streams.
- If I select Fanout By Attribute in Properties in my writer, all my attributes are available. If I select the User Attributes tab, no attributes are listed.
Through these observations, my attributes seems valid (supported by the transformers and the Fanout) and unique thus I see no reason why the writer shouldn't export them.
Solution:
Like GIS-Jonathan suggest, I have added my writer and selected the static schema. Then I right click my writer and select Copy Attributes From ... and select the desired source. Now I have all the attributes I want.
