remove_mirror_edges: Remove mirror edges

View source: R/geometrical_functions_sf.R

remove_mirror_edgesR Documentation

Remove mirror edges

Description

Keep unique edges based on start and end point

Usage

remove_mirror_edges(lines, keep_shortest = TRUE, digits = 3, verbose = TRUE)

Arguments

lines

A feature collection of linestrings

keep_shortest

A boolean, if TRUE, then the shortest line is keeped if several lines have the same starting point and ending point. if FALSE, then the longest line is keeped.

digits

An integer indicating the number of digits to keep in coordinates

Value

A feature collection of linestrings with the mirror edges removed

Examples

#This is an internal function, no example provided

JeremyGelb/spNetwork documentation built on May 24, 2024, 7:23 p.m.