Skip to content

Commit

Permalink
fixes #1519
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Nov 16, 2024
1 parent 79ac1f6 commit 5874384
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/rast.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ setMethod("rast", signature(x="SpatExtent"),
dots$xmax=x[2]
dots$ymin=x[3]
dots$ymax=x[4]
do.call(new_rast, dots)
r <- do.call(new_rast, dots)
# re-apply extent to avoid mimute differences
ext(r) <- x
r
}
)

Expand Down

0 comments on commit 5874384

Please sign in to comment.