Skip to main content
This function simplifies the input geometry by applying the Douglas-Peucker algorithm. ST_Simplify
The simplification may not preserve topology, potentially producing invalid geometries. Use ST_SimplifyPreserveTopology to retain valid topology after simplification.

Signatures

ST_Simplify(geom: Geometry, tolerance: Double)

Parameters

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

Return type

The resulting geometry.

Example

SELECT ST_Simplify(ST_Buffer(ST_GeomFromWKT('POINT (0 2)'), 10), 1)
POLYGON ((10 2, 7.0710678118654755 -5.071067811865475, 0.0000000000000006 -8, -7.071067811865475 -5.0710678118654755, -10 1.9999999999999987, -7.071067811865477 9.071067811865476, -0.0000000000000018 12, 7.071067811865474 9.071067811865477, 10 2))