Prepare the point locations for extracting data by transforming locs
to
a SpatVector
, projecting to the coordinate reference system of from
,
and creating a data.frame
containing locs_id
for retaining extracted
values.
Arguments
- from
SpatRaster(1) or SpatVector(1). Output from
process_\*()
. Passed fromcalc_\*()
.- locs
data.frame. character to file path, SpatVector, or sf object. Passed from
calc_\*()
.- locs_id
character(1). Column within
locations
CSV file containing identifier for each unique coordinate location. Passed fromcalc_\*()
.- radius
integer(1). Circular buffer distance around site locations. (Default = 0). Passed from
calc_\*()
.- geom
logical(1). Should the geometry of
locs
be returned in thedata.frame
? Default isFALSE
, options "sf" or "terra" will preserve geometry, but will useterra
for extraction.