marconett / mercator_to_equirectangular

Converting Mercator projection to equirectangular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Converting between mercator and equirectangular projections

This is not a scientific tool.

It is a simplified version of the tool described by: http://paulbourke.net/panorama/webmerc2sphere/index.html

usage: main.py [--invert] input_image output_image

Default is to convert from mercator to equirectangular.

The option --invert does equirectangular to mercator.

Source for input.png is Wikipedia (unmodified, Author: Justin Kunimune, License: CC BY-SA 4.0).

Comparing the output of this script with the image of a equirectangular projection on Wikipedia, the output looks good enough for my use case.

Input Output
Input Output

About

Converting Mercator projection to equirectangular

License:MIT License


Languages

Language:Python 100.0%