Simplifies a geometry by removing points that would fall within a specified distance tolerance.
Argument … |
Specifies … |
tolerance |
a FLOAT that represents the distance tolerance for the simplification. The simplified line will never be farther away from the original line than the tolerance value. |
Returns an ST_Geometry value.
This method is valid on the following 2D geometries: LineString, MultiLineString, Polygon, and MultiPolygon. It is valid on these types within GeometryCollections.
If SimplfyPreserveTopology is called on other 2D geometries, those geometries are returned unchanged.
This method is not valid on 3D geometries.
SELECT shape.SimplifyPreserveTopology(0.1)
FROM sample_shapes;