All Products
Search
Document Center

PolarDB:ST_timeToDistance

Last Updated:Mar 28, 2026

Returns a polyline geometry where the x-axis represents time and the y-axis represents Euclidean distance, plotted from a trajectory object.

Syntax

geometry ST_timeToDistance(trajectory traj);

Parameters

ParameterDescription
trajThe trajectory object.

Examples

Select ST_timeToDistance(traj) from traj_table;