Skip to content

Commit 87558a6

Browse files
committed
createSSURGO: another fix RE: #401
1 parent 358864a commit 87558a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/createSSURGO.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ createSSURGO <- function(filename = NULL,
291291
sf::st_geometry(shp) <- "geometry"
292292

293293
.st_write_sf_conn <- function(x, dsn, layer, j, overwrite) {
294-
if (j == 1 && isFALSE(append)) {
294+
if ((i == 1 && j == 1) && isFALSE(append)) {
295295
sf::write_sf(
296296
x,
297297
dsn = dsn,

0 commit comments

Comments
 (0)