Skip to contents

Helper function for computing leaf nodes of an sf MULTILINESTRING or LINESTRING object.

Usage

polyg_leaf_nodes(input_lines)

Arguments

input_lines

object of class sf of type LINESTRING or MULTILINESTRING.

Value

An sf object of type POINT containing all leaf nodes of input.

Details

Function to compute leaf nodes, i.e. nodes which only intersect with one linestring in the sf LINESTRING object. If input contains geometries of type MULTILINESTRING, they are cast to LINESTRING before computing.