Spatial Analysis in 2025: Key Trends Report
| Download Now
CARTO
Platform
Overview
Visualization
Analytics
App Development
Data Enrichment
AI Agents
Enterprise & Security
Pricing
CARTO for
Google Cloud
AWS
Azure
Snowflake
Databricks
Oracle
Solutions
By Industry
By Use Case
By Role
Telecoms
Icon/indus/Insurance-menu
Icon/indus/Insurance-menu-mobile
Insurance
Logistics
Real Estate
Financial Services
Retail
Marketing & Advertising
Mobility
All industries
Network Deployment
Catastrophe Modeling
Fraud Detection
Market Analysis
Environmental Management
Site Selection
Geomarketing
Data Monetization
IoT Analytics
Supply Chain Optimization
Healthcare Analytics
Territory Planning
All use cases
Data Analyst
Data Scientist
GIS Professional
Developer
Customers
Resources
Learn
Documentation
CARTO Academy
Blog
Reports
Glossary
Connect
Events
Partners
Webinars
Log inRequest a demo
Try for free
2050-01-01
1990-01-01
"ES", "GB"

This content applies to a previous version of CARTO

In October 2021 we released a new version of our platform. You can find the latest documentation at docs.carto.com

Back to Help Center

How to Convert UTM Coordinates to Lat/Long Values

To convert UTM X/Y values into latitude/longitude coordinates, you need to know the SRID (Spatial Reference System Identifier) of your dataset. This identifier is essential for properly transforming your geographic data.

Solution

Use a combination of PostGIS functions to perform the conversion. The approach leverages three key functions: ST_Transform, ST_SetSRID, and ST_MakePoint.

Here’s the query structure (using SRID 25831 as an example):

UPDATE table_name
   SET the_geom =
            ST_Transform(
                ST_SetSRID(
                    ST_MakePoint(x, y),
                    25831
                ),
                4326
            )

How it works:

  • ST_MakePoint(x, y) creates a point geometry from your UTM coordinates
  • ST_SetSRID(..., 25831) assigns your dataset’s SRID to the point
  • ST_Transform(..., 4326) converts the point to standard latitude/longitude (SRID 4326)

The key is identifying your dataset’s correct SRID before executing the transformation query.

CARTO
carto-logo
  • Platform

  • Overview

  • Visualization

  • Analytics

  • App Development

  • Data Enrichment

  • Security & Governance

  • Gen AI

  • Pricing

  • Solutions

  • Data Analyst

  • Developer

  • Data Scientist

  • GIS Professional

  • By Industry

  • By Use Case

  • Resources

  • Customer Stories

  • Blog

  • Glossary

  • Documentation

  • Academy

  • Reports

  • Events

  • Webinars

  • Partners

  • Company

  • About us

  • Newsroom

  • Careers

  • Brand

  • Grants

Unlock the power of spatial analysis.

youtube logofacebook logotwitter logolinkedin logo

© CARTO 2024

Terms

Privacy Notice

Whistleblower Form