
Extract arrow base or tip points
ps_arrow_vertices.RdExtract arrow base or tip points
Usage
ps_arrow_vertices(
arrows,
which = c("last", "first"),
out_file = NULL,
overwrite = TRUE
)Value
A point terra::SpatVector, including an empty point vector for zero
arrows.
Examples
line <- terra::vect(list(rbind(c(0, 0), c(1, 1))), type = "lines",
crs = "EPSG:3857")
ps_arrow_vertices(line, "last")
#> class : SpatVector
#> geometry : points
#> dimensions : 1, 0 (geometries, attributes)
#> extent : 1, 1, 1, 1 (xmin, xmax, ymin, ymax)
#> coord. ref. : WGS 84 / Pseudo-Mercator (EPSG:3857)