Package pygeodesy :: Module ellipsoidalBase :: Class CartesianBase
[frames] | no frames]

Class CartesianBase

   object --+        
            |        
   bases.Base --+    
                |    
vector3d.Vector3d --+
                    |
                   CartesianBase
Known Subclasses:

(INTERNAL) Base class for ellipsoidal Cartesians.

Instance Methods
 
to3llh(self, datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran...)
Convert this (geocentric) Cartesian (x/y/z) point to (ellipsoidal) geodetic lat-, longitude and height on the given datum.
 
toStr(self, prec=3, fmt='[%s]', sep=', ')
Return the string representation of this cartesian.

Inherited from vector3d.Vector3d: __abs__, __add__, __cmp__, __div__, __eq__, __ge__, __gt__, __iadd__, __imatmul__, __imul__, __init__, __isub__, __itruediv__, __le__, __lt__, __matmul__, __mul__, __ne__, __neg__, __pos__, __radd__, __rmatmul__, __rmul__, __rsub__, __sub__, __truediv__, angleTo, copy, cross, dividedBy, dot, equals, minus, negate, others, parse, plus, rotate, rotateAround, sum, times, to2ll, to3xyz, unit

Inherited from bases.Base: __repr__, __str__, classname, toStr2, topsub

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from vector3d.Vector3d: length, x, y, z

Inherited from object: __class__

Method Details

to3llh(self, datum=Datum(name='WGS84', ellipsoid=Ellipsoids.WGS84, transform=Tran...)

 

Convert this (geocentric) Cartesian (x/y/z) point to (ellipsoidal) geodetic lat-, longitude and height on the given datum.

Uses Bowring’s (1985) formulation for μm precision in concise form: 'The accuracy of geodetic latitude and height equations', B. R. Bowring, Survey Review, Vol 28, 218, Oct 1985.

See also 'An Efficient Algorithm for Geocentric to Geodetic Coordinate Conversion', Ralph M. Toms, Lawrence Livermore National Laboratory, Sept 1995, http://www.osti.gov/scitech/biblio/110235 and 'An Improved Algorithm for Geocentric to Geodetic Coordinate Conversion', Ralph Toms, Apr 1996, http://www.osti.gov/ scitech/servlets/purl/231228.

Parameters:
  • datum - Datum to use (Datum).
Returns:
3-Tuple (lat, lon, heigth) in (degrees90, degrees180, meter).

toStr(self, prec=3, fmt='[%s]', sep=', ')

 

Return the string representation of this cartesian.

Parameters:
  • prec - Number of decimals, unstripped (int).
  • fmt - Enclosing backets format (string).
  • sep - Separator to join (string).
Returns:
Cartesian represented as "[x, y, z]" (string).
Overrides: bases.Base.toStr