All Products
Search
Document Center

ApsaraDB RDS:ST_leafType

Last Updated:Mar 28, 2026

Returns the leaf type of a trajectory object as a text value. The only supported leaf type is ST_POINT.

Syntax

text ST_leafType(trajectory traj)

Parameters

ParameterTypeDescription
trajtrajectoryThe trajectory object to inspect. Only ST_POINT-based trajectories are supported.

Example

SELECT st_leafType(traj) FROM traj WHERE id = 3;
-- STPOINT