Paths and directions

Why Mercator exists

A ship can hold a compass bearing and cannot easily hold a great circle. Mercator is the answer to one question — what must a map do so that a constant bearing is a straight line — and it answers it exactly.

Mercator is the most criticised projection in cartography and one of the most successful pieces of applied mathematics ever produced. Both are true, and the second is easier to establish.

It was built to answer one question, and it answers it exactly.

New York to Madrid on MercatorTwo routes. The great circle is 5768 km and is the shortest path on the sphere. The rhumb line holds a single compass bearing the whole way and is 5939 km — 171 km further, or 3.0 per cent. On Mercator the rhumb line departs from straight by 9.6e-16 of its own length.New YorkMadridsolid: shortest · dashed: constant bearing+3.0% for the rhumbdrawn in Mercator
Fig. 1 New York to Madrid on Mercator. The dashed line is the rhumb — a single compass bearing held the whole way — and on this projection it is exactly straight. The solid curve is the shortest route, which is 171 km shorter and cannot be steered by compass alone.

The problem in 1569

A ship at sea has a compass. It has no way of knowing where it is beyond dead reckoning, and no practical way of continuously adjusting its heading against a curve.

What it can do is hold a bearing. Set the wheel so the compass reads a constant angle and sail. The curve that results crosses every meridian at the same angle, and it is called a rhumb line or a loxodrome.

So the navigator’s question is not “what is the shortest route” — that route cannot be sailed with the available instruments. It is: given a chart, can a course be laid off with a straight edge and read as a compass bearing?

For that to work, the map must have one property. A rhumb line crosses every meridian at a constant angle; if the map preserves angles, the rhumb line’s image crosses every projected meridian at that same constant angle; and if the meridians are parallel vertical lines, a curve crossing them all at a constant angle is straight.

Conformality plus straight parallel meridians gives straight rhumb lines. That is the specification, and Mercator’s projection is what satisfies it.

Conformality is the requirement, not the feature

This is worth stating plainly because it is usually the other way round in popular accounts.

Mercator is not a projection that happens to be conformal and happens to be useful for navigation. It is the projection derived from the navigational requirement, and conformality is the constraint that requirement imposes. The characteristic spacing of the parallels — increasing toward the poles as lntan(π/4+φ/2)\ln\tan(\pi/4 + \varphi/2) — is exactly what is needed to keep the vertical stretch equal to the horizontal stretch secφ\sec\varphi that straight meridians force.

The famous areal distortion is the direct consequence. Longitude is stretched by secφ\sec\varphi; conformality demands latitude be stretched by the same; and the areas therefore go as sec2φ\sec^2\varphi, which is fifteenfold at 70°.

The distortion is not a defect of the design. It is the design, correctly executed.

The claim, checked

The site does not take the straightness on trust.

A rhumb line is generated by integrating its defining property — stepping along the sphere holding a constant bearing, which makes no reference to any projection. That curve is then projected and its departure from the straight line through its endpoints is measured.

On Mercator, the departure is 3.6×1073.6\times10^{-7} of the curve’s own length. And that residue is itself demonstrated to be the integrator rather than the geometry: refining the step by a factor of sixteen shrinks it by a factor of 256, which is fourth-order convergence and is what numerical error does. Geometry would not shrink.

The same rhumb lines on an equirectangular map bow by up to 10210^{-2} — four orders of magnitude more.

London to Tokyo, seen four waysThe same two routes on four projections. The gnomonic projection renders every great circle as an exactly straight line, which is what it is for; Mercator renders every rhumb line straight instead. Neither path changed — only the map did.Mercatorgreat circle bows 3.7e-1Gnomonicgreat circle bows not at allEquirectangulargreat circle bows 2.0e-1Orthographicgreat circle bows 9.0e-2solid: shortest · dashed: constant bearingone pair of routes
Fig. 2 London to Tokyo on four projections. The dashed rhumb is straight on Mercator and on nothing else here. The solid great circle is straight on the gnomonic projection and on nothing else. Neither path changed between panels; only the map did.

What the straight line costs

The rhumb line is longer than the great circle, and the excess is worth quantifying because it is the price of being able to steer at all.

What a constant compass bearing costsThe extra distance of the rhumb line over the great circle, for five journeys. It runs from almost nothing on a nearly north–south route to 28 per cent on a high-latitude east–west one. Every number is computed from the two distance formulae rather than quoted.Cape Town – London+0.0%3 kmNew York – Madrid+3.0%171 kmSydney – Santiago+12.7%1437 kmLondon – Tokyo+18.2%1737 kmAnchorage – London+28.2%2031 kmextra distance over the shortest routegreat circle vs rhumb linecomputed, not quoted
Fig. 3 Five journeys, with the extra distance of the constant-bearing route over the shortest one. It runs from almost nothing on a nearly north–south route to twenty-eight per cent on a high-latitude east–west one.

Cape Town to London costs three kilometres — nothing, because the route is nearly along a meridian and a meridian is both a rhumb line and a great circle. New York to Madrid costs 171 km, about three per cent. London to Tokyo costs 1,737 km, eighteen per cent. Anchorage to London costs 2,031 km, twenty-eight per cent.

The pattern is that the penalty grows with latitude and with east–west extent, and vanishes for north–south routes. For the Atlantic trade that made Mercator’s chart valuable, three per cent was an acceptable price for a course that could actually be steered.

For a modern transpacific flight it is not, which is why aircraft fly great circles — and why the gnomonic projection has a job.

The standard method

The classical solution used both projections together, and it is a nice piece of engineering.

Plot the route on a gnomonic chart, where the great circle is a straight line. Read off a series of waypoints along it. Transfer those to a Mercator chart and join them with straight segments. Each segment is now a rhumb line with a constant bearing, and the sequence of them approximates the great circle as closely as the number of waypoints allows.

Two projections, each chosen for the one property it has exactly, composed to solve a problem neither solves alone. This was standard practice for ocean navigation into the twentieth century.

What Mercator is bad at

Everything else, and the essay would be dishonest not to say so.

Five identical cells on MercatorFive patches, each 20° of longitude by 10° of latitude. On the sphere the higher ones are genuinely smaller, because the meridians converge. On Mercator the cell at 70° comes out 15.4 times larger than the equatorial one relative to its true size.1.0×1.3×2.4×5.6×15.4×each cell is 20° × 10°drawn in Mercator
Fig. 4 Five identical patches of the sphere on Mercator. The one at 70° comes out fifteen times larger than the equatorial one relative to its true size. This is exactly the consequence of conformality plus straight meridians, computed rather than estimated.

As a world map for anything to do with size, area, or the relative importance of places, Mercator is a poor choice and there are many better ones. The criticism is legitimate and is the subject of its own essay.

What does not follow is that the projection is bad. It is a tool built to a specification, meeting the specification exactly, and being used for a purpose it was never designed for. The blame for a Mercator world map on a classroom wall belongs to whoever hung it there.

The modern irony

Mercator’s straight rhumb lines are largely obsolete for navigation. GPS and autopilots make continuous course correction trivial, so a modern vessel steers great circles directly and the projection’s whole reason for existing has evaporated.

And Mercator is now more dominant than it has ever been, because it turned out to have a second property nobody was designing for: at every zoom level, on every tile, north is up and the projection is locally conformal, so a street corner looks like a street corner. For a map that will be panned and zoomed continuously and viewed mostly at city scale, that matters far more than what the projection does to Greenland.

The projection survived the disappearance of its purpose by acquiring a new one. The irony is that the version now in use is not actually conformal, so it has kept the reputation and lost the property.

The scale factor, and what it means on a chart

A working navigator needed more from a Mercator chart than straight rhumb lines. Distances had to be measurable off it, and on a projection whose scale changes with latitude that requires a convention.

The convention is to measure distance against the latitude scale at the same latitude as the leg being measured, never against the longitude scale and never against the latitude scale elsewhere on the chart. One minute of latitude is one nautical mile, everywhere, by definition — and Mercator’s conformality means the local scale is the same in every direction, so the latitude scale at that latitude is the correct ruler for a leg in any direction there.

That is conformality earning its keep a second time. On a non-conformal chart the same trick would fail, because the scale would depend on the direction of the leg as well as its position.

How Mercator distorts, by latitudeAngular deformation and areal scale plotted against latitude along the meridian at 0°. On Mercator the angular deformation reaches 0.0° and the areal factor reaches 91.5.-60°-30°30°60°angular deformation, to 2°areal factor, to 91.5×latitudetwo independent distortionsalong the 0° meridian
Fig. 5 Mercator’s scale behaviour. The angular deformation is flat on zero — which is what lets one ruler serve every direction — and the areal factor is the price, growing as the square of the linear scale factor.

Why the poles are missing

Mercator’s ordinate is lntan(π/4+φ/2)\ln\tan(\pi/4 + \varphi/2), which grows without bound as latitude approaches 90°. The poles are at infinity and no chart can include them.

That is not a defect to be patched. It is forced: conformality with straight parallel meridians requires the vertical stretch to match the horizontal stretch secφ\sec\varphi, and secφ\sec\varphi diverges at the pole. Any projection with those two properties has the same behaviour.

Charts are conventionally cut at about 84° north and south, which is where this site’s library truncates too. For a navigational chart that limit costs nothing — there was no shipping there — and for a web map it is why the slippy-map tile scheme is square: cutting at about 85.05° makes the map exactly as tall as it is wide, which is a convenient accident rather than a geographic decision.

The projection is not a picture of a cylinder

Worth saying once directly, because the standard illustration implies otherwise.

There is no light source, no cylinder, and no geometric projection that produces Mercator. Wrapping a cylinder round a globe and projecting rays from the centre gives the central cylindrical projection, which is a different and much worse map — its parallel spacing goes as tanφ\tan\varphi rather than lntan(π/4+φ/2)\ln\tan(\pi/4 + \varphi/2), and it is not conformal.

Mercator’s spacing is the solution to a differential equation: make the vertical stretch equal the horizontal one at every latitude. That is an integral of secφ\sec\varphi, and it is why the cylinder in the family name is a description of the output shape rather than a recipe.

6 projections of the same sphereThe same graticule under mercator, miller, equirectangular, gallPeters, behrmann, lambertCylindrical. Every one of them is a faithful drawing of the same object and no two agree, because each has chosen a different thing to preserve.MercatorMiller cylindricalEquirectangularGall–PetersBehrmannLambert cylindricalsame sphere, same graticuleno two agree
Fig. 6 Six cylindrical projections, all producing the same rectangular graticule and differing only in how the parallels are spaced. That spacing is the entire content of a cylindrical projection, and every one of these is a different answer to what it should be.

What the chart looked like in use

Worth picturing, because the projection’s design makes sense only against the working method.

A navigator laying a course took a straight edge, drew a line from the departure point to the destination, and measured its angle against any meridian on the chart — all meridians being parallel, any one would do. That angle was the compass course, read directly, with no computation.

Distance came from the latitude scale at the relevant latitude, one minute of latitude being one nautical mile. Position was plotted by dead reckoning: course, speed and elapsed time, marked forward along the line.

Every one of those operations depends on a property of the projection. Straight rhumbs make the ruled line a course. Parallel meridians make any of them a protractor. Conformality makes one ruler serve every direction at a given latitude.

The chart is a computational instrument, and the projection is its design.

Tissot's indicatrix across MercatorA small circle on the sphere, drawn where the projection puts it. The dashed circle behind each is what an undistorted map would show. On Mercator every ellipse is a circle — ω never exceeds 1.0e-6°, and the areal factor reaches 4.0.dashed: an undistorted circledrawn in Mercator
Fig. 7 Mercator’s indicatrices, every one a circle. That is what lets a single latitude scale serve as a ruler for a leg in any direction — the local scale does not depend on which way the leg points.

The successors

Two later projections solve the same problem better in narrower circumstances, and both are worth knowing.

Transverse Mercator applies the same construction about a meridian rather than the equator, which makes it exact along a north–south line. It is the basis of UTM and of most national grids, and it is the projection most of the world’s survey data actually lives in.

The oblique Mercator puts the exact line along an arbitrary great circle, which suits a country elongated on a diagonal or a satellite’s ground track.

All three are the same projection with the axis pointed somewhere else, and the family’s continued dominance in technical work is a fair measure of how good the original specification was.

5 projections of the same sphereThe same graticule under mercator, stereographic, lambertConformalConic, miller, equirectangular. Every one of them is a faithful drawing of the same object and no two agree, because each has chosen a different thing to preserve.MercatorStereographicLambert conformal conicMiller cylindricalEquirectangularsame sphere, same graticuleno two agree
Fig. 8 Conformal projections from three families alongside two that are not. Mercator’s particular virtue is not conformality, which it shares, but conformality combined with straight parallel meridians — which is what makes the rhumb lines straight.

The projection outliving its purpose

One closing observation, because it is the neatest thing about the projection’s history.

Mercator solved a problem that no longer exists. Satellite navigation and autopilots make continuous course correction trivial, so no vessel steers a rhumb line for want of an alternative, and the property the projection was designed around is of no practical use to modern navigation.

It is nonetheless more widely used than at any time in its history, for a property nobody was designing for: at any zoom level, on any tile, north is up and shapes are locally right, which is what a panned and zoomed street map needs.

A tool built to an exact specification, surviving the disappearance of that specification by accidentally satisfying a different one. And the version now in use lacks the property it is named for, so it has kept the reputation and lost the substance.

What was computed here

The rhumb lines are integrated from dφ=δcosθ\mathrm{d}\varphi = \delta\cos\theta, dλ=δsinθ/cosφ\mathrm{d}\lambda = \delta\sin\theta/\cos\varphi with a midpoint rule, and the integration is verified by requiring the path to land on its intended destination — it does, to between 2×10112\times10^{-11} and 1.4×1071.4\times10^{-7} radians.

That independence matters. The first version of the path generator interpolated latitude and longitude linearly, which is a different curve and not a rhumb line at all; it bowed by nearly one per cent on Mercator and the straightness assertion caught it. Generating the curve from Mercator’s own ordinate would have made the test circular and would have hidden the error.

Distances use the haversine formula rather than the spherical law of cosines, which is algebraically equivalent and loses precision badly at short range. The great circle is asserted never to be longer than the rhumb, across all five journeys.

What the pictures cannot show

A rhumb line spirals infinitely toward the pole without reaching it, which the finite journeys drawn here never approach. Mercator’s straight line reaches infinity at the pole, and the two facts are the same fact.

The projections drawn are spherical. The Earth is an ellipsoid and the real rhumb lines differ slightly, by an amount that matters for surveying and does not for the argument here — and the figures say which body they assume.

Who found it, and when

Gerardus Mercator published the chart in 1569 with the title Nova et Aucta Orbis Terrae Descriptio ad Usum Navigantium Emendate Accommodata — a new and enlarged description of the Earth, corrected for the use of navigators. The purpose is in the title.

He did not publish a derivation, and probably did not have one: the mathematics needed is an integral of secφ\sec\varphi, and calculus was a century away. He appears to have constructed the spacing geometrically and by trial.

Edward Wright supplied the mathematical justification in 1599, computing the required spacing by summing secants in small steps — a numerical integration performed by hand, decades before the operation had a name.

Where this goes next

The path Mercator does not straighten is the shortest route is not straight. The projection that straightens it instead is the gnomonic companion. And the argument about what Mercator costs is Mercator against Peters.