1

I have point coordinates returned with wkid 3857 and need to convert to 4326 to get point geometry using PostGIS. I know I can return geometry of the same type using the following:

ST_SetSRID(ST_MakePoint(lat,long),4326)

How can I convert points from a different spatial reference system?

1

You either need to setsrid or transform.

Hope this will be useful. http://postgis.net/2013/08/30/tip_ST_Set_or_Transform/

  • ST_Transform(ST_SetSRID(ST_MakePoint(lat,long),3857),4326) did the trick – Don P Mar 10 '18 at 2:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.