Calculate the Peirce quincuncial projection of the Earth

2

The Peirce quincuncial projection is pretty neat. It actually tessellates the whole plane:

Your job is to generate this map projection.

To simplify things, you will only need to generate the northern hemisphere.

Also, you will be given the stereographic projection of the northern hemisphere as input:

(based on https://commons.wikimedia.org/wiki/File:Stereographic_Projection_Polar_Extreme.jpg).

Which means all that is left for you to do is to map this disk onto a square in an angle-preserving manner (as described here). (Note: You may assume that the disk touches all four sides of the input image.)

This is code-golf, so the shortest code wins!

PyRulez

Posted 2018-03-13T21:30:20.647

Reputation: 6 547

Question was closed 2018-03-13T23:07:58.763

1I'm unsure what we're supposed to output. Just one tile of the top image? – xnor – 2018-03-13T21:46:32.690

@xnor That's correct. – PyRulez – 2018-03-13T22:11:10.597

So this is graphical output? Does the tile need to tilted like a diamond? Can the circle be rotated however before being mapped to a square? Any resolution requirements? Can the output include parts of the red circle outline? I think an example output would be helpful, especially because the top image seems to use a different map image. – xnor – 2018-03-14T00:06:24.040

@xnor You can rotate things however you wish, and there are no resolution requirements. Also, you have to include the red circle since its part of the input image. – PyRulez – 2018-03-14T00:26:03.653

No answers