ST_trajectorySpatial

更新时间: 2026-08-24 09:47:57

Returns the spatial geometry object of a trajectory object.

Syntax

geometry ST_trajectorySpatial(trajectory traj);
geometry ST_trajSpatial(trajectory traj);

ST_trajSpatial is an alias for ST_trajectorySpatial.

Parameters

ParameterDescription
trajThe trajectory object.

Example

Retrieve the spatial path of each trajectory in traj_table as well-known text (WKT):

Select ST_AsText(ST_trajectorySpatial(traj)) FROM traj_table;
            st_astext
----------------------------------
 LINESTRING(114 35,115 36,116 37)
上一篇: ST_endTime 下一篇: ST_trajectoryTemporal