ST_equals

更新时间:
复制 MD 格式

Returns true if a trajectory object and a geometry object are spatially equal within the specified time range.

Syntax

boolean ST_equals(trajectory traj, tsrange range, geometry g);
boolean ST_equals(trajectory traj, timestamp t1, timestamp t2, geometry g);

Parameters

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

Example

Select ST_equals(traj, '2010-1-1 13:00:00', '2010-1-1 14:00:00', 'LINESTRING(0 0, 5 5, 9 9)'::geometry) from traj_table;