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
| Parameter | Type | Description |
|---|---|---|
traj1 | trajectory | The first trajectory object. |
traj2 | trajectory | The 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)
);该文章对您有帮助吗?