R: Vector topology methods

topology {terra} | R Documentation

## Vector topology methods

### Description

`makeNodes` create nodes on lines

`mergeLines` connect lines to form polygons

`removeDupNodes` removes duplicate nodes in geometries and optionally rounds the coordinates

`snap` makes boundaries of geometries identical if they are very close to each other.

### Usage

    ## S4 method for signature 'SpatVector'
    mergeLines(x)
    ## S4 method for signature 'SpatVector'
    snap(x, y=NULL, tolerance)
    ## S4 method for signature 'SpatVector'
    removeDupNodes(x, digits = -1)
    ## S4 method for signature 'SpatVector'
    makeNodes(x)

### Arguments

`x` | SpatVector of lines or polygons
`y` | SpatVector of lines or polygons to snap to. If `NULL` snapping is to the other geometries in `x`
`tolerance` | numeric. Snapping tolerance (distance between geometries) or simplifying tolerance (distance between nodes)
`digits` | numeric. Number of digits used in rounding. Ignored if < 0

### Value

SpatVector

### See Also

`sharedPaths`, `gaps`, `simplify`

[Package terra version 1.4-22 Index]