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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mapprojectionanimator-0.1.0a0.tar.gz.
File metadata
- Download URL: mapprojectionanimator-0.1.0a0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b9ca773c2129217c2683cd4f11ce2ae920e9891c4b3a59bfca54f56254f4490
|
|
| MD5 |
74594b752775f4a4fff08661edfdb9f0
|
|
| BLAKE2b-256 |
f870c927ef89ca049666914a2671b1f602e343307eea87086e32e8907992b4bb
|
File details
Details for the file mapprojectionanimator-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: mapprojectionanimator-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec3aef98f50e16c64baa06266d49b64a381ac8e94fe48547827a733a13be0d11
|
|
| MD5 |
8911941c284cd237816967f8e2fc114f
|
|
| BLAKE2b-256 |
6a5081d7ca00ac7dc0b35d32cfed3594a3beca279995bde416f8ef413f60f3d1
|