-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathwbt_source.Rd
More file actions
41 lines (34 loc) · 1.36 KB
/
wbt_source.Rd
File metadata and controls
41 lines (34 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wbt_source.R
\name{wbt_source}
\alias{wbt_source}
\title{Initialize an R object containing spatial data for use by WhiteboxTools}
\usage{
wbt_source(
x,
dsn = NULL,
layer = NULL,
force = FALSE,
tmpdir = tempdir(),
pattern = "wbt",
verbose = wbt_verbose(),
...
)
}
\arguments{
\item{x}{A terra SpatVector or sf object, or a path to a file that can be read as a SpatVectorProxy. Or a SpatRaster object that exists only in memory, or references a source file.}
\item{dsn}{Data source path / file name}
\item{layer}{Data layer}
\item{force}{Force write of vector data to file? Default: FALSE (only write if file does not exist)}
\item{tmpdir}{Directory to write temporary ESRI Shapefiles for vector input in memory or otherwise not already in shapefile. Default: \code{tempdir()}}
\item{pattern}{Character vector giving the initial part of the temporary file name}
\item{verbose}{Print information about data source and contents?}
\item{...}{Additional arguments passed to \code{terra::writeVector()} or \code{sf::st_write()}}
}
\value{
An R object with attributes \code{wbt_dsn} and \code{wbt_layer} set as needed to support reading and writing R objects from file by WhiteboxTools.
}
\description{
Initialize an R object containing spatial data for use by WhiteboxTools
}
\keyword{General}