Home | Trees | Indices | Help |
|
---|
|
object --+ | named._Named --+ | named._NamedBase --+ | Osgr
Ordinance Survey Grid References (OSGR) coordinate.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Properties | |
datum Get the datum (Datum). |
|
easting Get the easting ( meter ).
|
|
iteration Get the most recent Osgr.toLatLon iteration number
(int or 0 if not available/applicable).
|
|
northing Get the northing ( meter ).
|
|
Inherited from Inherited from |
Method Details |
New Osgr National Grid Reference.
Example: >>> from pygeodesy import Osgr >>> r = Osgr(651409, 313177) |
Parse a string to a similar Osgr instance. |
Convert this OSGR coordinate to an (ellipsoidal) geodetic point. While OS grid references are based on the OSGB36 datum, the Ordnance Survey have deprecated the use of OSGB36 for lat-/longitude coordinates (in favour of WGS84). Hence, this method returns WGS84 by default with OSGB36 as an option, see. 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.
|
DEPRECATED, use method Osgr.toRepr.
|
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 |
Property Details |
datumGet the datum (Datum).
|
eastingGet the easting (
|
iterationGet the most recent
|
northingGet the northing (
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 12 20:50:02 2020 | http://epydoc.sourceforge.net |