I want the Postgres / PostGIS queries to convert the UTM coordinates of the SIRGAS 2000 / UTM zone 20N (EPSG: 31974) projection to the Decimal Degrees projection. Separating longitude and latitude into distinct columns.
PostGIS – How to Convert UTM to Lat Long in Decimal Degrees using PostGIS
coordinate systempostgispostgresql
Best Answer
You can use a combination of
ST_Transform
to reproject the data, thenST_X
andST_Y
to extract the latitude and longitude.