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

Signatures

ST_SimplifyVW(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_SimplifyVW(ST_GeomFromWKT('POLYGON((8 25, 28 22, 28 20, 15 11, 33 3, 56 30, 46 33,46 34, 47 44, 35 36, 45 33, 43 19, 29 21, 29 22,35 26, 24 39, 8 25))'), 80)
POLYGON ((8 25, 28 22, 15 11, 33 3, 56 30, 47 44, 43 19, 24 39, 8 25))