Skip to content

Commit

Permalink
fixes #315
Browse files Browse the repository at this point in the history
  • Loading branch information
rhijmans committed Oct 5, 2023
1 parent 694aeb5 commit 1eca6de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: raster
Type: Package
Title: Geographic Data Analysis and Modeling
Version: 3.6-23
Date: 2023-07-03
Version: 3.6-24
Date: 2023-10-05
Imports: Rcpp, methods, terra (>= 1.7-29)
LinkingTo: Rcpp
Depends: sp (>= 1.4-5), R (>= 3.5.0)
Expand Down
5 changes: 4 additions & 1 deletion R/writeStartStopGDAL.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@

writeStart(r, filename, overwrite=overwrite, gdal=gdal, filetype=format, datatype=datatype, progress=0, NAflag=NAflag, progressbar=FALSE, sources=sources)

if (inherits(x, "RasterStack")) {
x <- brick(x, values=FALSE)
}

attr(x@file, "transient") <- r

x@file@datanotation <- datatype
x@file@driver <- 'gdal'
x@data@fromdisk <- TRUE
Expand Down

0 comments on commit 1eca6de

Please sign in to comment.