Skip to main content

pymil - Open-source Carte internationale du Monde au Millionième nomenclature encoder

Pymil is a simple Carte internationale du Monde au Millionième nomenclature coder. You might find it useful for searching maps for a specific coordinate pair.

usage: pymil.py [-h] [–geojson] [–scale SCALE] latitude longitude

calculates CIM code for given coordinate pair.

positional arguments:

latitude longitude

optional arguments:
-h, --help

show this help message and exit

--geojson

prints geoJSON of the map area instead of the code.

--scale SCALE

scale to be encoded, defaults to 1:25.000.

CIM

The CIM uses the geographic coordinate system as background for the Earth separation, each individual chart receives a code that is composed by two letters and a number. The two letters represent respectively the hemisphere (north or south) and a interval of 4° in Earth’s latitude, which follow the alphabetical order starting from the Equator and increasing to the poles. The number represents a interval of 6° in longitude, marked with numbers and starting in the 180° meridian.

The letters that follow this are subdivisions of the basic millionth chart and indicates charts in scales 1 to 500,000, 250,000, 100,000, 50,000 and 25,000. The letter/number used in each part of the code deppends on the relative position of the chart to its smaller scale counterpar.

TODO

  • Make better docs.

__geo_interface__

The class CIM includes a __geo_interface__, as defined in https://gist.github.com/sgillies/2217756

Thanks

  • Luis Urtiga for the CIM nomenclature explanation.

Metadata

Release files for pymil 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymil 0.3.0
File Size Uploaded Provenance Actions
pymil-0.3.0.tar.gz 14.7 kB Without provenance Details for pymil-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymil 0.3.0
File Interpreter ABI Platform Actions
pymil-0.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pymil-0.3.0-py2.py3-none-any.whl

Total release size: 32.0 kB

Release files / pymil-0.3.0.tar.gz

Download URL pymil-0.3.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2d9cef7eaa3ad66915c448ef7fd45d0e5479fd85faf42a53b4ccfdf8ea5b6843
BLAKE2b-256 checksum
How to use checksums
d4744d45dce1d818f1703f13c45aac9337f684409a577a62ff284567162c0021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / pymil-0.3.0-py2.py3-none-any.whl

Download URL pymil-0.3.0-py2.py3-none-any.whl
Size 17.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6fa6c92add2edd50e607632f4cf9941576b15d3d6181dfae9f414e0112718909
BLAKE2b-256 checksum
How to use checksums
d5c2abe4ebae3fa036ef26398ccd359ed61f7b33dcda3965479fdc5b60db0a0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for pymil 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page