From 6024ce175fb8c5d7de475a6025e6777e0bbe7922 Mon Sep 17 00:00:00 2001 From: rhijmans Date: Wed, 2 Oct 2024 16:34:21 -0700 Subject: [PATCH] fixes #1611 --- R/rasterize.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/rasterize.R b/R/rasterize.R index bc396ca60..e0b8e13c2 100644 --- a/R/rasterize.R +++ b/R/rasterize.R @@ -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) } @@ -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) }