We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb44fb commit 0608d6bCopy full SHA for 0608d6b
R/wbt_source.R
@@ -31,7 +31,7 @@ wbt_source <- function(x,
31
stop("package `terra` is required to convert non-Shapefile vector sources to Shapefile")
32
}
33
34
- x2 <- terra::vect(x, layer = layer)
+ x2 <- terra::vect(x, layer = ifelse(is.null(layer), "", layer))
35
if (terra::writeVector(x2, fp)) {
36
x <- fp
37
} else {
0 commit comments