简体   繁体   中英

srid doesn't change (in postgres)

I have a table in srid=4326

I need to change the srid to 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

I tried to change the srid with:

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)

这是几何变换的替代sql,您可以尝试

alter table table_name alter column geom type geometry using st_transform(st_setsrid(geom,4326),32636)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM