PolarDB-O 云原生数据库 ST_distanceWithin

By | 2021年4月22日

指定时间区间的轨迹段1离给定轨迹段2是否在指定距离之内。

语法

boolean ST_distanceWithin(trajectory traj1, trajectory traj2, tsrange range, float8 d);
boolean ST_distanceWithin(trajectory traj1, trajectory traj2, timestamp t1, timestamp t2, float8 d);

参数

参数名称 描述
traj 轨迹对象。
t1 开始时间。
t2 结束时间。
range 时间段。
d 指定距离。

示例

Select ST_distanceWithin((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', 100);

请关注公众号获取更多资料

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Iconic One Theme | Powered by Wordpress