I have this column for creating a geometry from SQL Server:
Shape AS ([geometry]::STGeomFromText(((('POINT('+CONVERT([varchar](20);,Longitude))+' ')+CONVERT([varchar](20),Latitude))+')',(4326))), PRIMARY KEY CLUSTERED
I need to create the column from SQL Server to Postgres:
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;
I also changed the STGeomFromText to ST_GeomFromText but I'm getting an error in pgAdmin:
ERROR: syntax error at or near "AS"
LINE 32: Shape AS ([geometry]::STGeomFromText(((('POINT('+CONVERT([...
^
********** Error **********
ERROR: syntax error at or near "AS"
SQL state: 42601
Character: 818
Did I missed something to install for postgis or the syntax needs a complete overhaul for postgres?