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

PolarDB:ST_intersects

最終更新日:Jul 01, 2024

軌道オブジェクト1と2が指定された時間範囲内で空間内で交差する場合、この関数はtrueを返します。

構文

boolean ST_intersects(trajectory traj1, trajectory traj2);
boolean ST_intersects(trajectory traj1, trajectory traj2, tsrange range);
boolean ST_intersects(trajectory traj1, trajectory traj2, timestamp t1, timestamp t2);

パラメーター

パラメーター

説明

traj

軌道オブジェクト。

t1

開始時刻

t2

終了時刻です。

range

時間範囲

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