Skip to main content

A basic Open-source Carte internationale du Monde au Millionième nomenclature encoder.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymil-0.3.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymil-0.3.0-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pymil-0.3.0.tar.gz.

File metadata

  • Download URL: pymil-0.3.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for pymil-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2d9cef7eaa3ad66915c448ef7fd45d0e5479fd85faf42a53b4ccfdf8ea5b6843
MD5 7cad05a740e680b2b6c085bef6406aac
BLAKE2b-256 d4744d45dce1d818f1703f13c45aac9337f684409a577a62ff284567162c0021

See more details on using hashes here.

File details

Details for the file pymil-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pymil-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for pymil-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6fa6c92add2edd50e607632f4cf9941576b15d3d6181dfae9f414e0112718909
MD5 bf89605cbef99e36191b6d04eca4652e
BLAKE2b-256 d5c2abe4ebae3fa036ef26398ccd359ed61f7b33dcda3965479fdc5b60db0a0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page