すべてのプロダクト
Search
ドキュメントセンター

PolarDB:ST_nearestApproachPoint

最終更新日:Jul 02, 2024

この関数は、指定された時間範囲内で軌道オブジェクト2に最も近い軌道オブジェクト1の空間点を返します。

構文

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