0
votes

I have a created a Point Geometry Column (coordenadas) in Postgres/Postgis using the following command line:

SELECT AddGeometryColumn ('public', 'tb_amostra', 'coordenadas', 4326, 'POINT',2,false); 

I have two columns, LONGITUGE and LATITUDE, in the tb_amostra table and I need to create points with 8 decimal digits for (lon, lat) into coordenadas column based on the values in LONGITUDE and LATITUDE columns. Any help on that please? Thank you for your time in advance.

1

1 Answers

0
votes
UPDATE tb_amostra SET coordenadas = ST_SetSRID(ST_MakePoint(lon,lat),4326);