Skip to main content
This function eliminates consecutive duplicate points within a geometry, preserving endpoints of LineStrings. It operates on (Multi)LineStrings, (Multi)Polygons, and MultiPoints, processing GeometryCollection elements individually. When an optional ‘tolerance’ value is provided, vertices within that distance are also considered duplicates. ST_RemoveRepeatedPoints

Signatures

Parameters

geom
Geometry
required
The input geometry.
tolerance
Double
The distance tolerance.

Return type

The resulting geometry.

Examples

Each geometry within a collection is processed independently.

Elimination of repeated points within a specified distance tolerance.