Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Mar 12, 2024
1 parent 41b6550 commit 14e9325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/tar-terra-rast.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ create_format_terra_raster <- function(filetype, gdal, ...) {
drv <- terra::gdal(drivers = TRUE)
drv <- drv[drv$type == "raster" & grepl("write", drv$can), ]

filetype <- match.arg(filetype, drv$name)

if (is.null(filetype)) {
filetype <- "GTiff"
}

filetype <- match.arg(filetype, drv$name)

.write_terra_raster <- function(object, path) {
terra::writeRaster(
object,
Expand Down

0 comments on commit 14e9325

Please sign in to comment.