| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
bases._Named --+
|
bases._Based --+
|
bases.LatLonHeightBase --+
|
nvector.LatLonNvectorBase --+
|
object --+ |
| |
bases._Named --+ |
| |
bases._Based --+ |
| |
bases.LatLonHeightBase --+ |
| |
ellipsoidalBase.LatLonEllipsoidalBase --+
|
LatLon
An n-vector-based ellipsoidal LatLon point.
Example:
>>> from ellipsoidalNvector import LatLon >>> p = LatLon(52.205, 0.119) # height=0, datum=Datums.WGS84
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
| Properties | |
|
Inherited from Inherited from Inherited from Inherited from |
| Method Details |
Copy this point.
|
Calculate the NED delta from this to an other point. The delta is returned as a North-East-Down (NED) vector. Note, this is a linear delta, unrelated to a geodesic on the ellipsoid. The points need not be defined on the same datum.
Example: >>> a = LatLon(49.66618, 3.45063) >>> b = LatLon(48.88667, 2.37472) >>> delta = a.deltaTo(b) # [N:-86126, E:-78900, D:1069] >>> d = delta.length # 116807.681 m >>> b = delta.bearing # 222.493° >>> e = delta.elevation # -0.5245° |
Calculate the destination point using the supplied NED delta from this point.
Example: >>> a = LatLon(49.66618, 3.45063) >>> delta = toNed(116807.681, 222.493, -0.5245) # [N:-86126, E:-78900, D:1069] >>> b = a.destinationNed(delta) # 48.88667°N, 002.37472°E JS name: destinationPoint. |
DEPRECATED, use method
|
Compare this point with an other point.
See Also: Use method isequalTo3 to include height. Example: >>> p = LatLon(52.205, 0.119) >>> q = LatLon(52.205, 0.119) >>> e = p.isequalTo(q) # True |
Return the point at given fraction between this and an other point.
Example: >>> p = LatLon(52.205, 0.119) >>> q = LatLon(48.857, 2.351) >>> p = p.intermediateTo(q, 0.25) # 51.3721°N, 000.7073°E JS name: intermediatePointTo. |
Convert this (geodetic) point to (geocentric x/y/z) cartesian coordinates.
|
Convert this point to an Nvector normal to the earth's surface.
Example: >>> p = LatLon(45, 45) >>> n = p.toNvector() >>> n.toStr() # [0.50, 0.50, 0.70710] |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Apr 9 13:08:48 2019 | http://epydoc.sourceforge.net |