toLatLon (self,
LatLon=None,
datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran... ,
kTM=False,
eps=1e-05,
**LatLon_kwds)
|
|
Convert this Osgr coordinate to an (ellipsoidal) geodetic point.
- Arguments:
LatLon - Optional ellipsoidal class to return the geodetic point
(LatLon ) or None .
datum - Optional datum to convert to (Datum,
Ellipsoid, Ellipsoid2, Ellipsoid2 or a_f2Tuple).
kTM - If True , use Karney's Krüger method from
module ktm,
otherwise use the Ordnance Survey formulation
(bool ).
eps - Tolerance for OS convergence (meter ).
LatLon_kwds - Optional, additional LatLon keyword
arguments, ignored if LatLon is None .
- Returns:
- A
LatLon instance or if LatLon
is None a LatLonDatum3Tuple(lat, lon, datum) .
- Raises:
OSGRError - No convergence.
TypeError - If LatLon is not ellipsoidal or
datum is invalid or conversion to
datum failed.
Notes:
-
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.
-
The formulation implemented here due to Thomas, Redfearn, etc. is
as published by the Ordnance Survey, but is inferior to Krüger as
used by e.g. Karney 2011.
|