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

PolarDB:ST_nearestApproachDistance

最終更新日:Jul 01, 2024

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

構文

float8 S​T_nearestApproachDistance(trajectory traj, trajectory traj2);
float8 S​T_nearestApproachDistance(trajectory traj, trajectory traj2, tsrange range);
float8 S​T_nearestApproachDistance(trajectory traj, trajectory traj2, timestamp t1, timestamp t2);

パラメーター

パラメーター

説明

traj1

軌道オブジェクト1.

traj2

軌道オブジェクト2.

t1

開始時刻

t2

終了時刻です。

range

時間範囲

Select ST_nearestApproachDistance((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');