ST_mdistance

更新时间:
复制 MD 格式

Returns a float[] array of Euclidean distances between two trajectory objects at the same time point.

Syntax

float[] ST_mdistance(trajectory traj1, trajectory traj2);

Parameters

ParameterTypeDescription
traj1trajectoryThe first trajectory object.
traj2trajectoryThe second trajectory object.

Usage notes

The returned distances are not normalized.

Example

SELECT ST_mdistance(
  (SELECT traj FROM traj_table WHERE id = 1),
  (SELECT traj FROM traj_table WHERE id = 2)
);