Package pygeodesy :: Module datums :: Class Transform |
[frames] | no frames]

# Class Transform

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

Known Subclasses:
  - trf.TransformXform

Helmert datum transformation.

See Also: TransformXform.

Instance Methods
__init__(self, name='', tx=0, ty=0, tz=0, sx=0, sy=0, sz=0, s=0) New Transform. |
__eq__(self, other) Compare this and an other transform. |
__hash__(self) hash(x) |
__iter__(self) Yield the attribute values. |
__matmul__(self, point) Helmert-transform an ellipsoidal cartesian `point`. |
__neg__(self) |
items(self) Yield each attribute as 2-tuple `(name, value)`. |
inverse(self, name='') Return the inverse of this transform. |
toStr(self, prec=5, fmt='g', name='', **unused) Return this transform as a string. |
transform(self, x, y, z, inverse=False) Transform a (geocentric) position, forward or inverse. |
Inherited from `named._NamedEnumItem`: `unregister` Inherited from `named._NamedBase`: `__repr__`, `__str__`, `others`, `toRepr` Inherited from `named._Named`: `__imatmul__`, `__rmatmul__`, `attrs`, `classof`, `copy`, `dup`, `methodname`, `rename`, `toStr2` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Class Variables
| tx = `0.0`
| ty = `0.0`
| tz = `0.0`
| rx = `0.0`
| ry = `0.0`
| rz = `0.0`
| s = `0.0`
| s1 = `1.0`
| sx = `0.0`
| sy = `0.0`
| sz = `0.0`

Properties
| isunity Is this a `unity, identidy` transform (`bool`), like WGS84?
Inherited from `named._NamedEnumItem`: `name` Inherited from `named._Named`: `classname`, `classnaming`, `iteration`, `named`, `named2`, `named3`, `named4`, `sizeof` Inherited from `object`: `__class__`

Method Details

### __init__ (self, name='', tx=0, ty=0, tz=0, sx=0, sy=0, sz=0, s=0) (Constructor) |
New Transform. Arguments: `name` - Optional, unique name (`str`). `tx` - X translation (`meter`). `ty` - Y translation (`meter`). `tz` - Z translation (`meter`). `s` - Scale (`float`), ppm. `sx` - X rotation (`degree-seconds`). `sy` - Y rotation (`degree-seconds`). `sz` - Z rotation (`degree-seconds`). Raises: `NameError` - Transform with that `name` already exists. Overrides: object.__init__

### __eq__ (self, other) (Equality operator) |
Compare this and an other transform. Arguments: `other` - The other transform (Transform). Returns: `True` if equal, `False` otherwise.

### __hash__ (self) (Hashing function) |
hash(x) Overrides: object.__hash__ (inherited documentation)

### __matmul__ (self, point) |
Helmert-transform an ellipsoidal cartesian `point`. Raises: `TypeError` - Invalid `point`. Overrides: named._Named.__matmul__

### inverse (self, name='') |
Return the inverse of this transform. Arguments: `name` - Optional, unique name (`str`). Returns: Inverse (Transform). Raises: `NameError` - Transform with that `name` already exists.

### toStr (self, prec=5, fmt='g', name='', **unused) |
Return this transform as a string. Arguments: `prec` - Number of (decimal) digits, unstripped (`int`). `fmt` - Optional `float` format (`letter`). `name` - Override name (`str`) or `None` to exclude this transform's name. Returns: Transform attributes (`str`). Overrides: named._Named.toStr

### transform (self, x, y, z, inverse=False) |
Transform a (geocentric) position, forward or inverse. Arguments: `x` - X coordinate (`meter`). `y` - Y coordinate (`meter`). `z` - Z coordinate (`meter`). `inverse` - Optional direction, forward or inverse (`bool`). Returns: The transformed position (Vector3Tuple`(x, y, z)`).

Property Details

### isunity Is this a `unity, identidy` transform (`bool`), like WGS84? Get method: isunity(self) - Is this a `unity, identidy` transform (`bool`), like WGS84? Set method: _fset_error(inst, val) - Throws an `AttributeError`, always. Delete Method: _fdel(inst) - Zap the cached/memoized `property` value.