ST_SimplifyVW — Returns a simplified version of a geometry, using the Visvalingam-Whyatt algorithm
geometry ST_SimplifyVW(geometry geomA, float tolerance);
Returns a "simplified" version of the given geometry using the Visvalingam-Whyatt algorithm. Will actually do something only with (multi)lines and (multi)polygons but you can safely call it with any kind of geometry. Since simplification occurs on a object-by-object basis you can also feed a GeometryCollection to this function.
![]()  | |
Note that returned geometry might lose its simplicity (see ST_IsSimple)  | 
![]()  | |
Note topology may not be preserved and may result in invalid geometries. Use (see ST_SimplifyPreserveTopology) to preserve topology.  | 
![]()  | |
This function handles 3D and the third dimension will affect the result.  | 
Availability: 2.2.0