Extraction of segments (as LINE) composing polygons or lines.
Usage
mafa_geom_to_segment(sfobject, to = "MULTILINESTRING")
Arguments
- sfobject
sf object (sfc is POLYGON or LINESTRING).
- to
type of sfc in sf output: "MULTILINESTRING" or "LINESTRING" (default is "MULTILINESTRING").
Value
sf object composed of segments.
Details
When computing to "MULTILINESTRING", output is equivalent to sfobject with a GEOMETRY of multiple segments as LINES in MULTILINESTRING.
When computing to "LINESTRING", output is a long sf of sfobject where each row correspond to a segment with a GEOMETRY as LINE.