geospatial - How to transform from SRID 4258 to 4326 in PostGIs -


i have column polygons srid 4258, have been trying transform column srid 4326 not transform correctly.

i have done using 2 commands:

select updategeometrysrid('lig','geom',4326); update lig set geom=st_transform(st_setsrid(geom, 4258), 4326); 

any clues? mean should work!

thanks in advance!

i'm guessing using postgis 2.x, can directly specify alter table ddl change definition of table , update column required st_transform:

alter table lig  alter column geom type geometry(polygon, 4326)    using st_transform(st_setsrid(geom, 4258), 4326); 

if still using postgis 1.x, follow of these instructions modify geometry type.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -