Postgresql10数据之设置SRID

-- 创建几何对象的空间参考ID,更新成0 	
update t_noisemap set geometry =ST_SetSRID(geometry, 0)


-- 查询几何对象的空间参考ID 	
select st_srid(geometry) from t_noisemap

-- 获取几何对象的空间几何描述
select ST_Astext(geometry) from t_noisemap where id=2

猜你喜欢

转载自blog.csdn.net/weixin_43228814/article/details/110186390