sharedPaths: Shared paths

Description Usage Arguments Value See Also Examples

Description

Get shared paths of line or polygon geometries

Usage

1
2
## S4 method for signature 'SpatVector'
sharedPaths(x)

Arguments

x

SpatVector of lines or polygons

Value

SpatVector

See Also

gaps, topology

Examples

1
2
3
4
5
6
7
8
9
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
plot(v, col="light gray")
text(v, halo=TRUE)

x <- sharedPaths(v)
lines(x, col="red", lwd=2)
text(x, col="blue", halo=TRUE, cex=0.8)
head(x)

terra documentation built on Jan. 13, 2022, 5:08 p.m.