- Overview
- ECEFPosition
ECEFPosition
Part of Locations in the Python API reference.
Related guidance: concepts/locations, how-to/observe-location, how-to/pli-entities.
Runnable examples: publish_location.py, get_ecn_location.py.
from picogrid_ecn_client import ECEFPositionAn EPSG:4978 Cartesian position in metres.
ECEFPosition(*, x: float, y: float, z: float)Fields
Section titled “Fields”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| x | float | yes | — | finite | Finite EPSG:4978 X coordinate in metres, towards the intersection of the equator and the prime meridian. |
| y | float | yes | — | finite | Finite EPSG:4978 Y coordinate in metres, completing the right-handed set. |
| z | float | yes | — | finite | Finite EPSG:4978 Z coordinate in metres, towards the north pole. |
to_geodetic
Section titled “to_geodetic”Convert to latitude, longitude, and height above the WGS-84 ellipsoid.
def to_geodetic() -> GeodeticPositionReturns
Section titled “Returns”| Type | Description |
|---|---|
| GeodeticPosition | The equivalent WGS-84 coordinate triple. |
Raises
Section titled “Raises”| Exception | Description |
|---|---|
| ValidationError | If the position is near the center of the ellipsoid, where geodetic coordinates are not defined, with code degenerate_ecef. |
Version 0.2.0 · branch main
