[英]srid doesn't change (in postgres)
I have a table in srid=4326
我在srid=4326
有一张桌子
I need to change the srid
to 32636
我需要将srid
更改为32636
I tried to do this with:我试图这样做:
select UpdateGeometrySRID('tbl','geo', 32636)
When I check the results with:当我检查结果时:
select st_asewkt(geo)
from tbl
I see that the values of geo
are similar to srid
of 4326
and not 32636
我看到的值geo
类似于srid
的4326
,而不是32636
I tried to change the srid with:我尝试使用以下方法更改 srid:
update tbl
set geo = st_transform(geo, 32636)
but same results但同样的结果
How can I transform the geo
field from srid 4326 to 32636
(and save it in the table)如何将geo
字段从srid 4326 to 32636
(并将其保存在表中)
这是几何变换的替代sql,您可以尝试
alter table table_name alter column geom type geometry using st_transform(st_setsrid(geom,4326),32636)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.