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

Class Datum

 object --+        
          |        
 bases.Base --+    
              |    
 object --+   |    
          |   |    
bases.Named --+    
              |    
         _Based --+
                  |
                 Datum

Ellipsoid and transform parameters for an earth model.

Instance Methods
 
__init__(self, ellipsoid, transform=None, name='')
New datum.
 
__eq__(self, other)
Compares this and an other datum.
 
toStr(self, **unused)
Returns this datum as a string.

Inherited from _Based: __ne__

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

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

Properties
  ellipsoid
Gets this datum's ellipsoid (Ellipsoid).
  isellipsoidal
Checks whether this datum is ellipsoidal (bool).
  isspherical
Checks whether this datum is spherical (bool).
  transform
Gets this datum's transform (Transform).

Inherited from bases.Named: name

Inherited from object: __class__

Method Details

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

 

New datum.

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

__eq__(self, other)
(Equality operator)

 

Compares this and an other datum.

Parameters:
  • other - The other datum (Datum).
Returns:
True if equal (bool)

toStr(self, **unused)

 

Returns this datum as a string.

Parameters:
  • args - Optional, positional arguments.
Returns:
Datum attributes (string).
Overrides: bases.Base.toStr

Property Details

ellipsoid

Gets this datum's ellipsoid (Ellipsoid).

Get Method:
ellipsoid(self) - Gets this datum's ellipsoid (Ellipsoid).

isellipsoidal

Checks whether this datum is ellipsoidal (bool).

Get Method:
isellipsoidal(self) - Checks whether this datum is ellipsoidal (bool).

isspherical

Checks whether this datum is spherical (bool).

Get Method:
isspherical(self) - Checks whether this datum is spherical (bool).

transform

Gets this datum's transform (Transform).

Get Method:
transform(self) - Gets this datum's transform (Transform).