Home | Trees | Indices | Help |
|
---|
|
object --+ | bases.Base --+ | Osgr
OSGR coordinate.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
datum Gets the datum (Datum). |
|
easting Gets the easting (meter). |
|
northing Gets the northing (meter). |
|
Inherited from |
Method Details |
New OSGR National Grid Reference.
Example: >>> from pygeodesy import Osgr >>> r = Osgr(651409, 313177) |
Parses a string to an Osgr instance. For more details, see function parseOSGR in this module osgr. |
Converts this OSGR coordinate to an (ellipsoidal) geodetic point. Note formulation implemented here due to Thomas, Redfearn, etc. is as published by OS, but is inferior to Krüger as used by e.g. Karney 2011.
Example: >>> from pygeodesy import ellipsoidalVincenty as eV >>> g = Osgr(651409.903, 313177.270) >>> p = g.toLatLon(ev.LatLon) # 52°39′28.723″N, 001°42′57.787″E >>> # to obtain (historical) OSGB36 lat-/longitude point >>> p = g.toLatLon(ev.LatLon, datum=Datums.OSGB36) # 52°39′27.253″N, 001°43′04.518″E |
Returns a string representation of this OSGR coordinate. Note that OSGR coordinates are truncated, not rounded (unlike UTM grid references).
Example: >>> r = Osgr(651409, 313177) >>> str(r) # TG 5140 1317 >>> r.toStr(prec=0) # 651409,313177 |
Returns a string representation of this OSGR coordinate.
|
Property Details |
eastingGets the easting (meter).
|
northingGets the northing (meter).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 30 11:06:30 2017 | http://epydoc.sourceforge.net |