Simplify
Removes vertices from lines and polygon outlines within a tolerance, keeping their overall shape.
Pitfall. Simplifying polygons one at a time can open gaps and overlaps between neighbours that shared an edge.
| Also called | Simplify Line, Simplify Polygon, generalize, Douglas-Peucker |
|---|---|
| Group | vector/geometry |
| Checks | crs.measure, geometry.valid |
| Pitfalls | 1 listed above |
| Columbus tool | vector_op · simplify |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related | Not stated |
Parameters
| Name | Type | Required | Default | Values | Note |
|---|---|---|---|---|---|
tolerance | length | yes | Not stated | Not stated | Not stated |
unit | enum | yes | Not stated | m, ft, us-ft, km, mi | Not stated |
preserve_topology | boolean | no | yes | Not stated | Avoid creating invalid or collapsed shapes. |
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | layer | vector | Not stated | Not stated |
| Output | output | vector | Not stated | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
apache-sedona | sedona.sql.ST_Simplify |
|
|
apache-sedona | sedona.sql.ST_SimplifyPreserveTopology |
|
|
gdal | gdal vector simplify |
| None noted |
geopandas | geopandas.GeoSeries.simplify |
| None noted |
grass | v.generalize |
|
Preset: {"method":"douglas"} |
postgis | st_simplify |
|
|
postgis | st_simplifypreservetopology |
| None noted |
qgis | native:simplifygeometries |
|
Preset: {"METHOD":0} |
sf | sf::st_simplify |
|
|
shapely | shapely.simplify |
| None noted |
terra | terra::simplifyGeom |
|
|
turf-js | turf.simplify |
|
|