Returns the number of leaves (trajectory points) in a trajectory object.
Syntax
integer ST_leafCount(trajectory traj);Parameters
| Parameter | Description |
|---|---|
traj | The trajectory object. |
Examples
Query the number of trajectory points in the trajectory with ID 2:
SELECT st_leafcount(traj) FROM traj WHERE id = 2;Output:
st_leafcount
--------------
16