Skip to main content
Solved

Write geometry to PostSQL Database

  • March 6, 2025
  • 5 replies
  • 58 views

clowncutie
Contributor
Forum|alt.badge.img+7

Hi, I have this workspace and databse connection, worked nicely to write to a table.

This is geometry column for another table in PGAdmin

 

My workspace using the PostGreSQL writer:

 

But for some reason, even if I add column geom manually in pg admin after, it refuses to write. What could I be doing wrong? The column jsut never appears, maybe it is a pgadmin question not FME question how I store the geodata, not as X,Y points but as readable geometry like this:

 

 

Best answer by nielsgerrits

What happens if you create the table using the PostGIS writer instead?

No expert but I think if you create the table using the PostgreSQL writer it is missing the spatial extension.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+61

Are you using the postgres writer or the postgis writer?


clowncutie
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 7, 2025

PostGRESQL writer


nielsgerrits
VIP
Forum|alt.badge.img+61
  • Best Answer
  • March 7, 2025

What happens if you create the table using the PostGIS writer instead?

No expert but I think if you create the table using the PostgreSQL writer it is missing the spatial extension.


clowncutie
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 31, 2025

I am stupid, I removed GEOM and used PostGIS writer instead to the database and that worked, usin geom as geometery column


nielsgerrits
VIP
Forum|alt.badge.img+61

Most of what I know is because I tried and failed :)