ST_trajectoryTemporal

获得轨迹的时间线。

语法

text ST_trajectoryTemporal(trajectory traj);
text ST_trajTemporal(trajectory traj);

参数

参数名称

描述

traj

需要获得时间线的轨迹。

示例

select ST_trajectoryTemporal(ST_MakeTrajectory('STPOINT'::leaftype, st_geomfromtext('LINESTRING (114 35, 115 36, 116 37)', 4326), '[2010-01-01 14:30, 2010-01-01 15:30)'::tsrange, null));
                              st_trajectorytemporal                             
--------------------------------------------------------------------------------
 {"timeline":["2010-01-01 14:30:00","2010-01-01 15:00:00","2010-01-01 15:30:00"]}
(1 row)