# Fun with the Mercator Projection

On my brother's wall is a map of Earth with the South Pole at the top. It uses an equal-area projection to show the true relative sizes of, say, Africa and Greenland. It aims to make a point about the more common North-up, Mercator projection. Mercator projection maps enlarge areas near the poles so that shapes are preserved. I like the sentiment but I think switching to an equal area projection and printing it upside-down is a little unimaginative. So I created this:

This is a map of Earth created using a Mercator projection, but with the magnified poles moved to the Atlantic and Pacific oceans. I created it using the Blue Marble map from Wikipedia. The dashed lines are the conventional latitude and longitude lines. You get a much better feel for the shape of Antarctica than normal Mercator maps give you, instead exaggerating Kamchatka.

Because, the Mercator projection doesn't need to make Africa small and Greenland big. It can do anything you want it to. So for example, here is my little rebellion against Mercator's underplaying of Africa's troubles: a Mercator map in which the continent is infinite in area:

I've cropped the image here. In principle a Mercator projection can be continued infinitely in the vertical direction, and in this case the 'north' pole is in Africa, so the map would be Africa all the way up. The level of detail would, source image notwithstanding, get bigger and bigger until eventually sub-atomic particles started to appear. Theoretically, you could exploit this to produce a map where Britain opened out as Africa has at the top, and extend the map up to include a road map of England, including  a large-scale street map of Manchester, eventually opening out to provide a floor-plan of one particular building, then room, and eventually the layout of one table. This, however, seems like it would be very difficult so I haven't bothered.

Here's another Mercator map, this time with the poles near Australia and Africa again:

And here's one with poles in Asia and South America, creating a world with one central ocean:

Here's the maths in case you want to make some maps yourself. Feel free to stop reading here if you wrongly find maths boring. I haven't worried about sign conventions or being especially rigorous, though. It's just enough to make some nice pictures. I treated the Earth as a sphere of unit radius centred at the origin.

Converting between (x, y) and (latitude, longitude) is fairly trivial if you read Wikipedia, although I did have to kludge the formula a bit for 'negative' (south) latitudes. To reorient the map, I converted the latitudes φ and longitudes λ to three-dimensional Cartesian coordinates using the following formulae:

x = cos φ × cos λ y = cos φ × sin λ z = sin φ

I'd planned to rotate these and then convert them back into spherical coordinates, but in the event I found it easier to go directly into rotated spherical coordinates. They're defined by two points, called North Pole N and Greenwich G, each chosen at random from the surface of the sphere, and described by a set of (x, y, z) coordinates. So the new latitude and longitude are given as follows:

φ′ = ½π − cos−1 PN  = ½π − cos−1 (x xN + y yN + z zN) λ′ = tan−1 (PG′ ÷ PG″)

where G′ = N × G ÷ |N × G| and G″ = N × G′. Using the cross product this way generates two points on the new equator separated by 90°. In fact the conversion to new-longitude is more complex than this, because you have to mess around with quadrants, but I used the atan2 function to do that for me so I've not bothered working out all the steps.

I don't know if this is the best way of doing this but welcome to stream-of-conciousness mathematics.

• ## Acilius

I was just thinking someone should launch an application called "Mercator Rotator" that would create maps like these. So I went looking, and found this magnificent post of yours.
1
• ## Mercator Rotator « Panther Red

[...] ago, this picture appeared on a site called Apathy [...]
2
• ## Anonymous Coward

This is awesome! I imagine your last map (poles in Asia and South America) would be the one that fish would like to use!
3
• ## Tyler

What happened to Greenland and Antarctica? I mean what's with all the triangles?
4
• ## Andrew

Because the Mercator Projection is theoretically infinite in height, it is always presented cropped. The North and South Poles aren't part of the source image I used, so I simply used the nearest point available. That means any point on the top or bottom edge of the original map got stretched out into the triangles you can see around the poles.
5