Learn R Programming

geos (version 0.2.1)

geos_polygonize: Create polygons from noded edges

Description

Create polygons from noded edges

Usage

geos_polygonize(collection)

geos_polygonize_valid(collection)

geos_polygonize_cut_edges(collection)

geos_polygonize_full(collection)

Value

A GEOMETRYCOLLECTION of polygons

Arguments

collection

A GEOMETRYCOLLECTION or MULTILINESTRING of edges that meet at their endpoints.

Examples

Run this code
geos_polygonize("MULTILINESTRING ((0 0, 0 1), (0 1, 1 0), (1 0, 0 0))")
geos_polygonize_valid("MULTILINESTRING ((0 0, 0 1), (0 1, 1 0), (1 0, 0 0))")
geos_polygonize_cut_edges("MULTILINESTRING ((0 0, 0 1), (0 1, 1 0), (1 0, 0 0))")

Run the code above in your browser using DataLab