Home | Trees | Indices | Help |
|
---|
|
object --+ | bases.Base --+ | Osgr
OSGR coordinate.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
datum Get the datum (Datum). |
|
easting Get the easting (meter). |
|
northing Get the northing (meter). |
|
Inherited from |
Method Details |
New OSGR National Grid Reference.
Example: >>> from pygeodesy import Osgr >>> r = Osgr(651409, 313177) |
Parse a string to an Osgr instance. For more details, see function parseOSGR in this module osgr. |
Convert 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 |
Return 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 |
Return a string representation of this OSGR coordinate.
|
Property Details |
eastingGet the easting (meter).
|
northingGet the northing (meter).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jun 20 12:31:43 2017 | http://epydoc.sourceforge.net |