ST_timeAtPoint
Updated at:
Returns all timestamps at which a trajectory object passes through a given spatial point.
Syntax
timestamp[] ST_timeAtPoint(trajectory traj, geometry g);Parameters
| Parameter | Description |
|---|---|
traj | The trajectory object. |
g | The spatial point. |
Example
SELECT ST_timeAtPoint(traj, ST_GeomFromText('POINT(115 36)')) FROM traj_table;
st_timeatpoint
-------------------------
{"2010-01-01 15:00:00"}Is this page helpful?