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

# Class Datum

     object --+
              |
    bases.Named --+
                  |
        bases.Based --+
                      |
                 _Based --+
                          |
                         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. |
copy(self) Copy this datum. |
toStr(self, **unused) Return this datum as a string. |
Inherited from `_Based`: `__ne__` Inherited from `bases.Based`: `__repr__`, `__str__`, `classof`, `others`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties
| ellipsoid Get this datum's ellipsoid (Ellipsoid).
| 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 `_Based`: `name` Inherited from `bases.Named`: `classname`, `classnaming` 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 (string). 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 (bool)

### copy(self) |
Copy this datum. Returns: The copy, unregistered (Datum or subclass thereof). Overrides: bases.Named.copy

### toStr(self, **unused) |
Return this datum as a string. Parameters: `kwds` - Optional, keyword arguments. Returns: Datum attributes (string). Overrides: bases.Based.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.

### 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.