Split by Lines
Cuts each feature into pieces where lines from another layer cross it.
Pitfall. Some functions return the pieces as one collection per feature rather than separate features.
Pitfall. A line that ends inside a polygon without crossing it does not split it.
| Also called | Split, split with lines, Split Polygons, cut polygons, blade |
|---|---|
| Group | vector/overlay |
| Checks | crs.agreement, geometry.valid |
| Pitfalls | 2 listed above |
| Columbus tool | Not stated |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related |
Parameters
Not stated
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | layer | vector | Not stated | Not stated |
| Input | lines | vector | line | Not stated |
| Output | output | vector | Not stated | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
apache-sedona | sedona.sql.ST_Split |
|
|
postgis | st_split |
|
|
qgis | native:splitwithlines |
| None noted |
shapely | shapely.split |
|
|
turf-js | turf.lineSplit |
|
|
whiteboxtools | SplitWithLines |
| None noted |