SteinerTree: Steiener tree function

Description Usage Arguments Value Examples

View source: R/SteinerTree.R

Description

Steiner Tree function using v.net.steiner from GRASS as core function It contains the v.net function to connect points to lines using threshold

Usage

1
SteinerTree(l, p, th, clean = FALSE)

Arguments

l

Network to calculate Steiner Tree (SLDF)

p

Points to be conected by Steiner Tree (SPDF)

th

Threshold –> max distance of points to be connected to lines

clean

If true, sldf will be cleaned internaly using CleanLines()

Value

Steiner tree for the lines and points given. In case there is some error, it return NA

Examples

1
2
3
4
5
6
7
## Not run: 
setGRASS(gisBase = "/usr/lib/grass78", epsg= 25829)
data("l"); data("p")
st <- SteinerTree(l, p[1:20,], th = 1000, clean = TRUE)
mapview(l)+st+p[1:20,]

## End(Not run)

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