Make valid
Repairs invalid geometries, such as self-intersecting polygons, so later operations give correct results.
Pitfall. A repair can change a feature's geometry type (a polygon becoming a multipolygon or a collection); check the output types.
Pitfall. Engines repair the same shape differently, so results are not always identical across engines.
| Also called | Repair Geometry, Fix geometries, MakeValid, ST_MakeValid |
|---|---|
| Group | vector/geometry |
| Checks | geometry.valid, geometry.repaired |
| Pitfalls | 2 listed above |
| Columbus tool | vector_op · make_valid |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related | Not stated |
Parameters
Not stated
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_MakeValid |
|
|
gdal | gdal vector make-valid |
| None noted |
geopandas | geopandas.GeoSeries.make_valid | Not stated | None noted |
postgis | st_makevalid |
|
|
qgis | native:fixgeometries |
|
|
sf | sf::st_make_valid |
| None noted |
shapely | shapely.make_valid |
| None noted |
terra | terra::makeValid |
| None noted |