This function checks the class of the input object and performs necessary conversions if needed.
.check_vector(
input,
input_id = NULL,
extent = NULL,
out_class = character(1),
...
)
The checked and converted subject object.
sf/SpatVector/character. The input object to be checked.
character(1). ID field of the subject object.
numeric(4). The extent of the subject object.
Numeric vector should be put in order of
c(xmin, xmax, ymin, ymax)
.
character(1). The class of the output object.
Should be one of c("sf", "terra")
.
Placeholder.