ST_trajectorySpatial

更新时间:
复制 MD 格式

Returns the spatial geometry of a trajectory object.

Syntax

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

Parameters

ParameterTypeDescription
trajtrajectoryThe trajectory object.

Example

SELECT ST_AsText(ST_trajectorySpatial(traj)) FROM traj_table;
            st_astext
----------------------------------
 LINESTRING(114 35,115 36,116 37)