accessory function to check if an object passed to the function
corresponds to a *Spatial
Object, a sf
object, a R raster
object, a
file corresponding to a vector, or a file corresponding to a raster.
NOTE: to check only for vector or raster types, the associated functions
get_vectype
and get_rastype
can be used, with the same syntax.
get_spatype(in_object, abort = TRUE)
in_object | either a |
---|---|
abort |
|
character ("spobject" | "sfobject" | "rastobject | "
vectfile" | rastfile), or NA
if the input does not
belong to any spatial category and abort == FALSE
Functions get_spatype, get_rastype and get_vectype come from package sprawl.