全部產品
Search
文件中心

ApsaraDB RDS:ST_intersection

更新時間:Aug 11, 2026

定時間段的軌跡1和軌跡2執行對應時間點上的移動對象之間的空間Intersection處理。

文法

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

參數

參數名稱

描述

traj1

軌跡對象1。

traj2

軌跡對象2。

t1

開始時間。

t2

結束時間。

range

時間段。

樣本

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