Skip to content

Commit

Permalink
fixes #1611
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Oct 2, 2024
1 parent 3a6610a commit 6024ce1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/rasterize.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ rasterize_points <- function(x, y, values, fun="last", background=NA, update=FAL
if (update && (!hasValues(y))) update <- FALSE
nrx <- nrow(x)


if (!is.data.frame(values)) {
values <- as.data.frame(values)
}
Expand Down Expand Up @@ -72,7 +71,7 @@ rasterize_points <- function(x, y, values, fun="last", background=NA, update=FAL
wopt$names <- txtfun
}
if (update) {
ops <- spatOptions("", TRUE, wopt)
ops <- spatOptions("", TRUE, wopt=wopt)
} else {
ops <- spatOptions(filename, overwrite, wopt=wopt)
}
Expand Down

0 comments on commit 6024ce1

Please sign in to comment.