[英]postgresql/postgis
I have a created a Point Geometry Column (coordenadas) in Postgres/Postgis using the following command line: 我使用以下命令行在Postgres / Postgis中创建了一个点几何列(coordenadas):
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. 我在tb_amostra表中有两列LONGITUGE和LATITUDE,我需要根据LONGITUDE和LATITUDE列中的值在coordenadas列中创建带8个十进制数字的点(lon,lat)。 Any help on that please? 请问有什么帮助吗? Thank you for your time in advance. 谢谢您的宝贵时间。
UPDATE tb_amostra SET coordenadas = ST_SetSRID(ST_MakePoint(lon,lat),4326);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.