ST_mdistance

更新时间:
复制 MD 格式

Returns an array of Euclidean distances between two trajectory objects, computed at each shared time point.

Syntax

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

Parameters

ParameterDescription
traj1The first trajectory object.
traj2The second trajectory object.

Usage notes

The returned distances are not standardized.

Example

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