Home | Trees | Indices | Help |
|
---|
|
object --+ | bases.Named --+ | bases.Based --+ | bases.LatLonHeightBase --+ | ellipsoidalBase.LatLonEllipsoidalBase --+ | LatLon
Using the formulae devised by Thaddeus Vincenty (1975) with an ellipsoidal model of the earth to compute the geodesic distance and bearings between two given points or the destination point given an start point and initial bearing.
Set the earth model to be used with the keyword argument datum. The default is Datums.WGS84, which is the most globally accurate. For other models, see the Datums in module datum.
Note: This implementation of the Vincenty methods may not converge for some valid points, raising a VincentyError. In that case, a result may be obtained by increasing the epsilon and/or the iteration limit, see properties LatLon.epsilon and LatLon.iterations.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
Properties | |
epsilon Get the convergence epsilon (scalar). |
|
iterations Get the iteration limit (int). |
|
Inherited from Inherited from Inherited from Inherited from |
Method Details |
Compute the destination point after having travelled for the given distance from this point along a geodesic given by an initial bearing, using Vincenty's direct method. See method destination2 for more details.
Example: >>> p = LatLon(-37.95103, 144.42487) >>> d = p.destination(54972.271, 306.86816) # 37.6528°S, 143.9265°E |
Compute the destination point and the final bearing (reverse azimuth) after having travelled for the given distance from this point along a geodesic given by an initial bearing, using Vincenty's direct method. The distance must be in the same units as this point's datum axes, conventionally meter. The distance is measured on the surface of the ellipsoid, ignoring this point's height. The initial and final bearing (aka forward and reverse azimuth) are in compass degrees. The destination point's height and datum are set to this point's height and datum.
Example: >>> p = LatLon(-37.95103, 144.42487) >>> b = 306.86816 >>> d, f = p.destination2(54972.271, b) # 37.652818°S, 143.926498°E, 307.1736 |
Compute the distance between this and an other point along a geodesic, using Vincenty's inverse method. See method distanceTo3 for more details.
Example: >>> p = LatLon(50.06632, -5.71475) >>> q = LatLon(58.64402, -3.07009) >>> d = p.distanceTo(q) # 969,954.166 m |
Compute the distance, the initial and final bearing along a geodesic between this and an other point, using Vincenty's inverse method. The distance is in the same units as this point's datum axes, conventially meter. The distance is measured on the surface of the ellipsoid, ignoring this point's height. The initial and final bearing (aka forward and reverse azimuth) are in compass degrees from North.
|
Compute the final bearing (reverse azimuth) after having travelled for the given distance along a geodesic given by an initial bearing from this point, using Vincenty's direct method. See method destination2 for more details.
Example: >>> p = LatLon(-37.95103, 144.42487) >>> b = 306.86816 >>> f = p.finalBearingOn(54972.271, b) # 307.1736 |
Compute the final bearing (reverse azimuth) after having travelled along a geodesic from this point to an other point, using Vincenty's inverse method. See method distanceTo3 for more details.
Example: >>> p = new LatLon(50.06632, -5.71475) >>> q = new LatLon(58.64402, -3.07009) >>> f = p.finalBearingTo(q) # 11.2972° >>> p = LatLon(52.205, 0.119) >>> q = LatLon(48.857, 2.351) >>> f = p.finalBearingTo(q) # 157.9 |
Compute the initial bearing (forward azimuth) to travel along a geodesic from this point to an other point, using Vincenty's inverse method. See method distanceTo3 for more details.
Example: >>> p = LatLon(50.06632, -5.71475) >>> q = LatLon(58.64402, -3.07009) >>> b = p.initialBearingTo(q) # 9.141877° >>> p = LatLon(52.205, 0.119) >>> q = LatLon(48.857, 2.351) >>> b = p.initialBearingTo(q) # 156.11064° JS name: bearingTo. |
Compute the initial bearing (forward azimuth) to travel along a geodesic from this point to an other point, using Vincenty's inverse method. See method distanceTo3 for more details.
Example: >>> p = LatLon(50.06632, -5.71475) >>> q = LatLon(58.64402, -3.07009) >>> b = p.initialBearingTo(q) # 9.141877° >>> p = LatLon(52.205, 0.119) >>> q = LatLon(48.857, 2.351) >>> b = p.initialBearingTo(q) # 156.11064° JS name: bearingTo. |
Convert this (geodetic) point to (geocentric) x/y/z Cartesian coordinates.
|
Property Details |
epsilonGet the convergence epsilon (scalar).
|
iterationsGet the iteration limit (int).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 13 11:53:06 2018 | http://epydoc.sourceforge.net |