Skip to main content
Solved

Write geometry to PostSQL Database


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.

View original
Did this help you find an answer to your question?

nielsgerrits
VIP
Forum|alt.badge.img+54

Are you using the postgres writer or the postgis writer?


clowncutie
Contributor
Forum|alt.badge.img+7

PostGRESQL writer


nielsgerrits
VIP
Forum|alt.badge.img+54

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

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+54

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings