Initialize an R object containing spatial data for use by WhiteboxTools
Source:R/wbt_source.R
wbt_source.Rd
Initialize an R object containing spatial data for use by WhiteboxTools
Usage
wbt_source(
x,
dsn = NULL,
layer = NULL,
force = FALSE,
verbose = wbt_verbose(),
...
)
Arguments
- x
A terra SpatVector or sf object, or a path to a file that can be read as a SpatVectorProxy
- dsn
Data source path / file name
- layer
Data layer
- force
Force write of vector data to file? Default: FALSE (only write if file does not exist)
- verbose
Print information about data source and contents?
- ...
Additional arguments passed to
terra::writeVector()
orsf::st_write()