Skip to main content
This function transforms a LineString containing multiple coordinates into an array of LineStrings, each with precisely two coordinates. The lenient argument, true by default, prevents an exception from being raised if the input geometry is not a LineString. ST_LineSegments

Signatures

Parameters

Geometry
required
The input geometry.
Boolean
The lenient value.

Return type

The resulting geometry.

Examples