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.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pymil-0.2.0-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pymil-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymil-0.2.0.tar.gz
Algorithm Hash digest
SHA256 508b13f490b84024a0cd910559abe9702439661c8b9a75846d1957d1f31e469f
MD5 961a8040d721bbf962f6cacb416e5f9b
BLAKE2b-256 6bfcdf69826cd214058eb4c03223dfd5bd559eff8861eee803509b7f8c68a6c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymil-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 df09665603289f4282a10bbe54399fba2cd9e1b90e8ae451fd5ad9c48af8cb3d
MD5 6848d0c78ca2138122476ca9e88f6ffe
BLAKE2b-256 7a21cf5f7e3ea9ae198617aa737c07940ef34c420ae2b3ccd5f15f88d80ed981

See more details on using hashes here.

Supported by

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