ST_equals

更新时间:
复制 MD 格式

Returns true if two trajectory objects are spatially equal within the specified time range.

Syntax

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

Parameters

ParameterDescription
trajThe trajectory object.
t1The start time.
t2The end time.
rangeThe time range.

Examples

SELECT ST_equals(
  (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'
);