Home | Trees | Indices | Help |
|
---|
|
object --+ | bases.Base --+ | Mgrs
Military Grid Reference System (MGRS/NATO) references, with method to convert to UTM coordinates.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
band Gets the latitudinal band A..Z (string). |
|
bandLatitude Gets the band latitude (degrees90 or None). |
|
datum Gets the datum (Datum). |
|
en100k Gets the 2-character grid EN digraph (string). |
|
easting Gets the easting (meter). |
|
northing Gets the northing (meter). |
|
zone Gets the longitudal zone 1..60 (int). |
|
Inherited from |
Method Details |
New Mgrs grid reference.
Example: >>> from mgrs import Mgrs >>> m = Mgrs('31U', 'DQ', 48251, 11932) # 31U DQ 48251 11932 |
Parses a string to a MGRS grid reference. For details, see function parseMGRS in this module mgrs.
|
Returns a string representation of this MGRS grid reference. Note that MGRS grid references are truncated, not rounded (unlike UTM coordinates).
Example: >>> m = Mgrs(31, 'DQ', 48251, 11932, band='U') >>> m.toStr() # '31U DQ 48251 11932' |
Returns a string representation of this MGRS grid reference.
|
Converts this MGRS grid reference to a UTM coordinate.
Example: >>> m = Mgrs('31U', 'DQ', 448251, 11932) >>> u = m.toUtm() # 31 N 448251 5411932 |
Property Details |
bandGets the latitudinal band A..Z (string).
|
bandLatitudeGets the band latitude (degrees90 or None).
|
en100kGets the 2-character grid EN digraph (string).
|
eastingGets the easting (meter).
|
northingGets the northing (meter).
|
zoneGets the longitudal zone 1..60 (int).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 30 11:06:30 2017 | http://epydoc.sourceforge.net |