CleanLines: Clean lines (SpatialLinesDataFrame) for Steiner tree

Description Usage Arguments Value Examples

View source: R/CleanLines.R

Description

This function will remove unchained parts of the lines layer that can cause issues when executing v.net.steiner. After removing those parts, the layer is imported into grass to execute v.clean and v.build to repare topology issues#'

Usage

1

Arguments

x

SpatialLinesDataFrame (network)

Value

SLDF ready to use in v.net and v.net.steiner

Examples

1
2
3
4
5
6
7
## Not run: 
setGRASS(gisBase = "/usr/lib/grass78", epsg= 25829)
data("l")
lc <- CleanLines(l[1:100,])
mapview(l[1:100,])+lc

## End(Not run)

cesarkero/IterativeSteinerTree documentation built on May 17, 2020, 4:38 p.m.