compose

geodetic_engine.geodesy.utils.compose(first, second)[source]

Compose two Helmert transformations applied in order.

Parameters:
Return type:

HelmertParameters

Returns:

A single Helmert equivalent to applying first then second.

Example

>>> ed50_to_ed87 = helmert_parameters(
...     CoordinateOperation.from_authority("EPSG", 1147)
... )
>>> ed87_to_wgs84 = helmert_parameters(
...     CoordinateOperation.from_authority("EPSG", 1146)
... )
>>> round(compose(ed50_to_ed87, ed87_to_wgs84).tx, 3)
-84.491