Skip to content

Commit

Permalink
fix for CRAN release; #705
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Nov 7, 2024
1 parent 5d6fc15 commit 91e7965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Depends:
R (>= 3.3.0),
abind,
sf (>= 1.0-19)
Remotes: r-spatial/sf
Imports:
methods,
parallel,
Expand Down
5 changes: 4 additions & 1 deletion R/rasterize.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ st_rasterize = function(sf, template = guess_raster(sf, ...) %||%
ret[[i]] = structure(ret[[i]], class = class(attrs[[i]]), levels = levels(attrs[[i]]))
}
}
ret
if (n_attr <= 1) # no names in bands
setNames(ret, names(attrs))
else
ret
}

guess_raster = function(x, ...) {
Expand Down

0 comments on commit 91e7965

Please sign in to comment.