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 Get the latitudinal band A..Z (string). |
|
bandLatitude Get the band latitude (degrees90 or None). |
|
datum Get the datum (Datum). |
|
en100k Get the 2-character grid EN digraph (string). |
|
easting Gets the easting (meter). |
|
northing Get the northing (meter). |
|
zone Get 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 |
Parse a string to a MGRS grid reference. For details, see function parseMGRS in this module mgrs.
|
Return 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' |
Return a string representation of this MGRS grid reference.
|
Convert this MGRS grid reference to a UTM coordinate.
Example: >>> m = Mgrs('31U', 'DQ', 448251, 11932) >>> u = m.toUtm() # 31 N 448251 5411932 |
Property Details |
bandGet the latitudinal band A..Z (string).
|
bandLatitudeGet the band latitude (degrees90 or None).
|
en100kGet the 2-character grid EN digraph (string).
|
eastingGets the easting (meter).
|
northingGet the northing (meter).
|
zoneGet the longitudal zone 1..60 (int).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jun 20 12:31:43 2017 | http://epydoc.sourceforge.net |