This release is a pre-release and may not be stable for production use.
MapProjectionAnimator
The command line tool MapProjectionAnimator makes possible to compare map projections and render animations from such comparisons.
Scientific Publications
An overview of the package and the ideas behind it can be found in:
- FB Mocnik: An Empirically Derived Structure Theorem for the Relative Distortion of Cartographic Projections, and a Visual Method for Comparing Them The Cartographic Journal, 2026
Installation
To install MapProjectionAnimator, you will need python3 and pip (How to install pip). Then execute:
pip install MapProjectionAnimator
On some operating systems, pip for python3 is named pip3:
pip3 install MapProjectionAnimator
Optionally, the font Helvetica can be added to the root directory in case the operating system does not offer this font. The file must be named Helvetica.ttc.
Usage
mpa clean
mpa --verbose codomain # 20s # 1m 8s
mpa projection # 13m 38s # 132m 31s
mpa video --high-quality # 6m 27s # 294m 50s
mpa clean
mkdir _output-logs
{ time mpa --verbose codomain > _output-logs/log-codomain.txt 2> _output-logs/log-codomain-error.txt ; } 2> _output-logs/log-codomain-time.txt
mkdir _output
{ time mpa projection > _output/log-projection.txt 2> _output/log-projection-error.txt ; } 2> _output/log-projection-time.txt
{ time mpa video --high-quality > _output/log-video.txt 2> _output/log-video-error.txt ; } 2> _output/log-video-time.txt
mv _output _output-rescale-by-codomains
mkdir _output
{ time mpa projection --no-rescale > _output/log-projection.txt 2> _output/log-projection-error.txt ; } 2> _output/log-projection-time.txt
{ time mpa video --high-quality > _output/log-video.txt 2> _output/log-video-error.txt ; } 2> _output/log-video-time.txt
mv _output _output-no-rescale
mkdir _output
{ time mpa projection --rescale-by-geometries > _output/log-projection.txt 2> _output/log-projection-error.txt ; } 2> _output/log-projection-time.txt
{ time mpa video --high-quality > _output/log-video.txt 2> _output/log-video-error.txt ; } 2> _output/log-video-time.txt
mv _output _output-rescale-by-geometries
Maintanance Notice
This software should not be considered stable. In particular, the algorithm can result in slightly different results on different platforms due to rounding errors, and adding additional map projections might not work as expected.
Author
This application is written and maintained by Franz-Benjamin Mocnik, mail@mocnik-science.net.
(c) by Franz-Benjamin Mocnik, 2023–2026.
License
The code is licensed under the MIT license.
Metadata
Release files for MapProjectionAnimator 0.1.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mapprojectionanimator-0.1.0a0.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mapprojectionanimator-0.1.0a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.8 kB
Release files / mapprojectionanimator-0.1.0a0.tar.gz
| Download URL | mapprojectionanimator-0.1.0a0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b9ca773c2129217c2683cd4f11ce2ae920e9891c4b3a59bfca54f56254f4490
|
|
BLAKE2b-256 checksum How to use checksums |
f870c927ef89ca049666914a2671b1f602e343307eea87086e32e8907992b4bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / mapprojectionanimator-0.1.0a0-py3-none-any.whl
| Download URL | mapprojectionanimator-0.1.0a0-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec3aef98f50e16c64baa06266d49b64a381ac8e94fe48547827a733a13be0d11
|
|
BLAKE2b-256 checksum How to use checksums |
6a5081d7ca00ac7dc0b35d32cfed3594a3beca279995bde416f8ef413f60f3d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|