ST_velocityAtTime

更新时间:
复制 MD 格式

Returns the velocity of a trajectory at a specified point in time.

Syntax

float8 ST_VelocityAtTime (trajectory traj, timestamp t);

Parameters

ParameterTypeDescription
trajtrajectoryThe trajectory object.
ttimestampThe time point at which to retrieve the velocity.

Return value

Returns a float8 value representing the velocity recorded in the trajectory's velocity attribute field at time t.

Example

Select ST_velocityAtTime(traj, '2010-1-11 23:40:00') From traj_table;