With the new spatial definition option in the FeatureWriter, it appears that Attribute Definition cannot be reverted to Automatic after first setting the Spatial Definition? In my case the format is set to PostGIS. Is this expected behavior? Am currently running FME Form 2025.1.1.0, Build 25623.
Spatial Definition and Automatic Attribute Definition with FeatureWriter
Best answer by crystalatsafe
Hi
I looked into this a bit and this is expected behaviour with FME 2025.1 and the addition of the spatial definition table.
The Spatial Definition table operates similar to the Attribute Definition table in automatic mode where the geometry name is coming from the connected incoming feature. When you switch to manual mode then back to automatic it does not preserve the input - same thing happens here for attributes.
For automatic mode: If the incoming data connection does not have a geometry name then the format's default name is applied - in this case for PostGIS it is geom.
To continue using Automatic mode and ensure your spatial data is written to your table's geometry column (location), I would suggest adding a GeometryNameSetter transformer prior to the FeatureWriter. This will set the name of the geometry to match your output schema.
Please let me know if you would like me to clarify anything or if you have any questions.




