Package pygeodesy :: Module datum :: Class Datum
[frames] | no frames]

Class Datum

  object --+            
           |            
named._Named --+        
               |        
named._NamedBase --+    
                   |    
named._NamedEnumItem --+
                       |
                      Datum

Ellipsoid and transform parameters for an earth model.

Instance Methods
 
__init__(self, ellipsoid, transform=None, name='')
New Datum.
 
__eq__(self, other)
Compare this and an other datum.
 
ecef(self, Ecef=None)
Return ECEF converter.
 
toStr(self, **unused)
Return this datum as a string.

Inherited from named._NamedEnumItem: __ne__, unregister

Inherited from named._NamedBase: __repr__, __str__, others, toStr2

Inherited from named._Named: classof, copy

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

Properties
  ellipsoid
Get this datum's ellipsoid (Ellipsoid).
  exactTM
Get the ExactTM projection (ExactTransverseMercator).
  isEllipsoidal
Check whether this datum is ellipsoidal (bool).
  isSpherical
Check whether this datum is spherical (bool).
  transform
Get this datum's transform (Transform).

Inherited from named._NamedEnumItem: name

Inherited from named._Named: classname, classnaming, named, named2

Inherited from object: __class__

Method Details

__init__(self, ellipsoid, transform=None, name='')
(Constructor)

 

New Datum.

Parameters:
  • ellipsoid - The ellipsoid (Ellipsoid).
  • transform - Optional transform (Transform).
  • name - Optional, unique name (str).
Raises:
  • NameError - Datum with that name already exists.
  • TypeError - If ellipsoid is not an Ellipsoid or transform is not a Transform.
Overrides: object.__init__

__eq__(self, other)
(Equality operator)

 

Compare this and an other datum.

Parameters:
  • other - The other datum (Datum).
Returns:
True if equal, False otherwise.

ecef(self, Ecef=None)

 

Return ECEF converter.

Parameters:
Returns:
An ECEF converter for this datum (EcefKarney, EcefVeness or EcefYou).
Raises:
  • TypeError - Invalid Ecef.

toStr(self, **unused)

 

Return this datum as a string.

Parameters:
  • kwds - Optional, keyword arguments.
Returns:
Datum attributes (str).
Overrides: named._Named.toStr

Property Details

ellipsoid

Get this datum's ellipsoid (Ellipsoid).

Get Method:
ellipsoid(self) - Get this datum's ellipsoid (Ellipsoid).
Set Method:
Read_Only(self, ignored) - Throws an AttributeError, always.

exactTM

Get the ExactTM projection (ExactTransverseMercator).

Get Method:
exactTM(self) - Get the ExactTM projection (ExactTransverseMercator).
Set Method:
Read_Only(self, ignored) - Throws an AttributeError, always.

isEllipsoidal

Check whether this datum is ellipsoidal (bool).

Get Method:
isEllipsoidal(self) - Check whether this datum is ellipsoidal (bool).
Set Method:
Read_Only(self, ignored) - Throws an AttributeError, always.

isSpherical

Check whether this datum is spherical (bool).

Get Method:
isSpherical(self) - Check whether this datum is spherical (bool).
Set Method:
Read_Only(self, ignored) - Throws an AttributeError, always.

transform

Get this datum's transform (Transform).

Get Method:
transform(self) - Get this datum's transform (Transform).
Set Method:
Read_Only(self, ignored) - Throws an AttributeError, always.