Fix geometries
Fix of incorrect geometries in vector files. The input is a vector file or a ZIP archive with vector files. The output is a vector file or a ZIP archive with vector files with correct geometry.
The code below uses the Toolbox SDK, which you can install with pip install toolbox-sdk.
Additional Python examples: using SDK, using Requests. If you prefer other programming language or need full API reference, check out Toolbox OpenAPI as well.
Docs
Fixes incorrect geometries in vector files. To find out if a vector file has invalid geometries, use Check geometries.
Inputs:
ZIP archive with vector files. Only single-file formats are supported (Geopackage, GeoJSON, etc., but not ESRI Shapefile).
Outputs:
File with fixed geometries in the same format as input.
Self-intersection detected¶
Geometry fixed by the tool¶
Try the tool in action
Click on the Demo button above the tool form. The fields are filled in with demo values.
Click on the Run button.