--------有經(jīng)緯度坐標(biāo),生成shape
UPDATE tablename SET shape = st_setsrid(st_makepoint(x, y), 4326)
------有shape,查看經(jīng)緯度
SELECT
st_x ( shape ) AS lon,
st_y ( shape ) AS lat
FROM
tablename
--------有經(jīng)緯度坐標(biāo),生成shape
UPDATE tablename SET shape = st_setsrid(st_makepoint(x, y), 4326)
------有shape,查看經(jīng)緯度
SELECT
st_x ( shape ) AS lon,
st_y ( shape ) AS lat
FROM
tablename