Learn R Programming

spNetwork (version 0.4.4.6)

remove_mirror_edges: 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)

Value

A feature collection of linestrings with the mirror edges removed

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

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab