ST_nearestApproachPoint

更新时间: 2026-03-28 11:57:08

Returns the point in traj1 that is spatially nearest to traj2 within a specified time range.

Syntax

geometry ST_nearestApproachPoint(trajectory traj1, trajectory traj2);
geometry ST_nearestApproachPoint(trajectory traj1, trajectory traj2, tsrange range);
geometry ST_nearestApproachPoint(trajectory traj1, trajectory traj2, timestamp t1, timestamp t2);

Parameters

ParameterDescription
traj1The first trajectory object.
traj2The second trajectory object.
rangeThe time range, specified as a tsrange value.
t1The start time.
t2The end time.

Example

Select ST_nearestApproachPoint((Select traj from traj_table where id=1), (Select traj from traj_table where id=2), '2010-1-1 13:00:00', '2010-1-1 14:00:00');
上一篇: Spatio-temporal statistics 下一篇: ST_nearestApproachDistance
阿里云首页 云原生数据库 PolarDB 相关技术圈