Learn R Programming

spNetwork (version 0.2.1)

heal_edges: Heal edges

Description

Merge Lines if they form a longer linestring without external intersections (experimental)

Usage

heal_edges(lines, digits = 3, verbose = TRUE)

Arguments

lines

A SpatialLinesDataFrame

digits

An integer indicating the number of digits to keep in coordinates

verbose

A boolean indicating if a progress bar should be displayed

Value

A SpatialLinesDataFrame with the eventually merged geometries. Note that if lines are merged, only the attributes of the first line are preserved

Examples

Run this code
# NOT RUN {
#This is an internal function, no example provided
# }

Run the code above in your browser using DataLab