Create polygons from noded edges
geos_polygonize(collection)
geos_polygonize_valid(collection)
geos_polygonize_cut_edges(collection)
geos_polygonize_full(collection)
A GEOMETRYCOLLECTION or MULTILINESTRING of edges that meet at their endpoints.
A GEOMETRYCOLLECTION of polygons
geos_polygonize("MULTILINESTRING ((0 0, 0 1), (0 1, 1 0), (1 0, 0 0))")
#> <geos_geometry[1]>
#> [1] <GEOMETRYCOLLECTION (POLYGON ((0 0, 0 1, 1 0, 0 0)))>
geos_polygonize_valid("MULTILINESTRING ((0 0, 0 1), (0 1, 1 0), (1 0, 0 0))")
#> <geos_geometry[1]>
#> [1] <POLYGON ((0 0, 0 1, 1 0, 0 0))>
geos_polygonize_cut_edges("MULTILINESTRING ((0 0, 0 1), (0 1, 1 0), (1 0, 0 0))")
#> <geos_geometry[1]>
#> [1] <GEOMETRYCOLLECTION EMPTY>