Map files & formats · 5 min
Projections and EPSG codes in plain English
Why the same point can be written as degrees or as millions of metres, and how to tell which.
Map files & formats
Same place, different numbers
A coordinate reference system (CRS) is the rulebook that says what a pair of numbers means: degrees on the globe, or metres on a particular flat grid.
The same point can be written very differently depending on the rulebook. The numbers alone don't tell you which one was used.
Dublin's Spire: 53.3498, -6.2603 (degrees) = -696,893, 7,047,965 (Web Mercator metres)
Lesson notes
Everything from the cards above, on one page to come back to.
Same place, different numbers
A coordinate reference system (CRS) is the rulebook that says what a pair of numbers means: degrees on the globe, or metres on a particular flat grid.
The same point can be written very differently depending on the rulebook. The numbers alone don't tell you which one was used.
Dublin's Spire: 53.3498, -6.2603 (degrees) = -696,893, 7,047,965 (Web Mercator metres)
EPSG codes are the rulebook's ID
Each CRS has an ID number from the EPSG list. Two you will meet constantly: EPSG:4326 is ordinary GPS latitude and longitude (WGS 84). EPSG:3857 is Web Mercator, in metres, used by web map tiles.
Countries have their own grids too, such as British National Grid (EPSG:27700) and Irish Transverse Mercator (EPSG:2157).
Why data lands in the sea
Software reads coordinates using the CRS it is told. If a file says nothing, or says the wrong thing, metres get read as degrees or the other way round, and the data lands in the wrong place.
Two classic signs. Your data shrinks to a tiny speck near 0, 0 off West Africa: degrees were read as metres. Or the software refuses it as out of range: metres were read as degrees, since no latitude is 530,000.
Changing projection
Reprojecting rewrites every coordinate from one CRS into another. Do it when the people or software you are sending to expect a certain system, for example a council asking for Irish Transverse Mercator.
GeoJSON, KML and GPX always use plain latitude and longitude, so they have nothing to choose.
Questions
What is EPSG:4326?
Plain GPS latitude and longitude on the WGS 84 datum. It is what phones, GPS units and GeoJSON use.
What is the difference between EPSG:4326 and EPSG:3857?
4326 is degrees on the globe; 3857 is Web Mercator, the same places flattened and measured in metres, used by web map tiles.