toLatLon (self,
LatLon=None,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... )
|
|
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.
- Arguments:
LatLon - Optional ellipsoidal class to return the geodetic point
(LatLon ) or None .
datum - Optional datum to use (Datum ).
- Returns:
- The geodetic point (
LatLon ) or a LatLonDatum3Tuple(lat, lon, datum)
if LatLon is None .
- Raises:
OSGRError - No convergence.
TypeError - If LatLon is not ellipsoidal or if
datum conversion failed.
Example:
>>> from pygeodesy import ellipsoidalVincenty as eV
>>> g = Osgr(651409.903, 313177.270)
>>> p = g.toLatLon(eV.LatLon)
>>>
>>> p = g.toLatLon(eV.LatLon, datum=Datums.OSGB36)
|