全部產品
Search
文件中心

AnalyticDB:ST_nearestApproachPoint

更新時間:Feb 05, 2024

指定時間段的軌跡1和軌跡2中找到最鄰近點資訊。

文法

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);

參數

參數名稱 描述
traj1 軌跡對象1。
traj2 軌跡對象2。
t1 開始時間。
t2 結束時間。
range 時間段。

樣本

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');