Longitude, Latitude, CRS, and Map Projections
🎯 Introduction
By the end of this article, you will be able to explain what a set of coordinate values means and why spatial data needs a coordinate reference system.
🌍 Longitude, Latitude, and Earth Models
Longitude describes east–west position, and latitude describes north–south position. Longitude typically ranges from -180° to 180°, and latitude from -90° to 90°. GeoJSON commonly writes coordinates as [longitude, latitude].
Earth is not a perfect sphere. GIS uses an ellipsoid—a slightly flattened model—to describe its shape. A datum defines how that ellipsoid relates to the real Earth. WGS84 is a widely used global geodetic datum.
🧭 What Is a CRS?
A coordinate reference system (CRS) provides the complete rules for interpreting coordinates, including the reference Earth model, axes, units, and area of use. Without a CRS, values such as [500000, 3000000] do not tell you whether they represent longitude and latitude or planar coordinates in meters.
A CRS lets the frontend, map services, and database interpret locations consistently. Verify the CRS before overlaying layers, querying by extent, or calculating distances.
A geographic coordinate system uses longitude and latitude directly. A projected coordinate system maps Earth’s surface onto a plane, often using meters.
🗺 EPSG:4326 and EPSG:3857
EPSG codes identify registered coordinate reference systems. EPSG:4326 identifies the WGS84 geographic CRS, commonly used for data exchange. EPSG:3857 identifies Web Mercator, a projection that converts longitude and latitude to a plane and is commonly used for web map tiles and display.
An EPSG code lets software find the precise coordinate rules, avoiding ambiguous team discussions about “longitude and latitude” or “coordinates in meters.”
Web maps need projections because screens are flat and Earth’s surface is curved. Flattening a curved surface distorts at least some aspects of area, distance, direction, or shape. Web Mercator works well for smoothly zoomable web maps, but its map areas should not be treated directly as precise ground areas.
🧾 Summary
- Longitude and latitude express geographic locations in angular units.
- A datum defines the Earth model and positioning reference.
- A CRS also defines axes, units, and an area of use.
- EPSG:4326 is commonly used for geographic coordinates; EPSG:3857 is commonly used for web display.
❓ Knowledge Check
Q1: Does an EPSG code automatically transform coordinates?
No. It identifies the rules in use. Transformation requires a separate calculation.
Q2: Is Web Mercator a more accurate coordinate system?
It is better suited to web map display, which does not make it more accurate for measuring distances and areas.
🧪 Exercise
For [116.4, 39.9], specify the coordinate order, units, and CRS. Explain whether these coordinates suit data exchange or direct use as web tile coordinates.
// Write your code here
🎉 You now understand why coordinate values need a CRS!
