Learn R Programming

terra (version 1.9-50)

elongate: elongate lines

Description

Elongate SpatVector lines

Usage

# S4 method for SpatVector
elongate(x, length=1, flat=FALSE)

Arguments

Value

SpatVector

See Also

buffer, crop, erase, extend

Examples

Run this code
v <- vect(cbind(c(0,1,2), c(0,0,2)), "lines", crs="lonlat")
e <- elongate(v, 100000)
plot(e)
points(e)
geom(e)

Run the code above in your browser using DataLab