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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -