Split into equal parts
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 polygon layer into equal parts.
Note
Doesn’t process multipolygons. You can first transform Multipart to singleparts.
Inputs:
Source file. Vector polygon layer in one of the formats, supported by GDAL, e.g. Shapefile in ZIP-archive, GeoJSON, GeoPackage.
Number of parts. Specify, into how many parts source polygon should be split.
Output:
Polygon GeoPackaged in a ZIP archive.
Example of a split polygon¶
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.