Skip to content

Commit

Permalink
Fix bug related to limits because time was Date and character was mixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mhesselbarth committed Nov 19, 2024
1 parent c62df18 commit 358cbb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/utils-spatial.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ terra_to_sf <- function(input, dissolve = TRUE, dummy = NULL){
# Combine all
out <- do.call("rbind",out)
}

# make sure date is character for now, causes issues later due to "No set time"
if (inherits(out$time, what = "Date")) out$time <- as.character(out$time)

return(out)
}

Expand Down

0 comments on commit 358cbb7

Please sign in to comment.