R: sharedPaths

topology {terra} | R Documentation

## sharedPaths

### Description

Get the shared paths of lines or polygons

### Usage

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

### Arguments

`x` | SpatVector of lines or polygons

### Value

SpatVector

### Examples

    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)

[Package terra version 1.2-10 Index]