Lines To Polygons
Polygons formed by closed lines, or by the areas that a network of lines encloses.
Pitfall. Some engines turn each closed line into a polygon; others build polygons from every area the lines enclose together, which differs when lines cross.
Pitfall. Lines that do not quite meet (an unsnapped gap) enclose nothing.
| Also called | Feature To Polygon, polygonize lines, close rings |
|---|---|
| Group | vector/geometry |
| Checks | 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 | line | Not stated |
| Output | output | vector | polygon | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
geopandas | geopandas.GeoSeries.polygonize | Not stated |
|
postgis | st_polygonize |
|
|
qgis | qgis:linestopolygons |
|
|
sf | sf::st_polygonize |
|
|
shapely | shapely.polygonize |
|
|
turf-js | turf.polygonize |
|
|
whiteboxtools | LinesToPolygons |
| None noted |