Skip to main content
Returns a modified geometry having no segment longer than the given max_segment_length. The length calculation is performed in 2D. When a segment is longer than the specified maximum length, it is split into multiple, equal-length subsegments. ST_Segmentize

Signatures

Parameters

geom
Geometry
required
The input geometry.
max_segment_length
Double
required
The max_segment_length value.

Return type

The resulting geometry.

Examples

Long segments are split evenly into subsegments no longer than the specified length. Shorter segments are not modified.