This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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. Typical usage would be something like:

#!/usr/bin/env python

import pymil

map = pymil.code(-11, -61) #Currently uses only decimal degrees;
map["100k"] #Returns a list containing the code elements for the 1:100k map that contains the area.
print map #Returns the code for 1:25k by default, in a string

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.
  • Extend functionality, maybe letting you use UTM and whatsoever. DMS would be nice and easy, also.

Thanks

  • Luis Urtiga for the CIM nomenclature explanation.
Release History

Release History

This version
History Node

0.1.0

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting