Skip to contents

Helper function for computing the substrings of an sf MULTILINESTRING or LINESTRING object.

Usage

polyg_cast_substring(input_lines)

Arguments

input_lines

object of class sf or sfc with geometry type MULTILINESTRING or LINESTRING.

Value

An sf or sfc object of type LINESTRING containing the substrings of input_lines.

Details

The output is always LINESTRING of class matching the class of input_lines.