Split Complex Polygons
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
Splits polygons with too many vertices into smaller parts. Each part is a separate feature that keeps all the attributes of the split polygon.
Inputs:
Source file - Vector layer in one of the formats supported by GDAL, e.g. GeoJSON, GeoPackage, zipped Shapefile.
Max count of vertices - Maximum number of vertices allowed in a polygon. Default is 200000.
Outputs:
GeoPackage file with split polygons.
Example input¶
Example output¶
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.