Erase overlapping areas from layer
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
Erases parts of polygonal features, overlapping with geometries from another layer.
Inputs:
Target layer (erase from) - file in OGR-supported format (ZIP archive for ESRI Shapfile);
Layer with subtractable objects. File in OGR-supported format (ZIP archive for ESRI Shapfile).
Outputs:
File with modified features in the same format.
Administratived boundaries minus the lake¶
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.