Fix geometries (QGIS)
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
Correction of incorrect geometries in vector files using the qgis:fixgeometries algorithm.
Inputs:
ZIP archive with vector files. Only single-file formats are supported (GeoPackage, GeoJSON, etc. not ESRI Shapefile);
Method. The method of the qgis algorithm ‘fixgeometries’. Choose one from the list: Linework or Structure.
Outputs:
ZIP archive containing vector files with correct geometry.
Example:
Example input¶
Fixed geometries¶
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.