Skip to content

Commit

Permalink
Update utils-get-dim.R
Browse files Browse the repository at this point in the history
Same as last PR but this time on dims. new version of terra no longer has ptr pointer.
  • Loading branch information
h-a-graham authored Oct 24, 2023
1 parent 731a892 commit 870cc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-get-dim.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ get_dim <- function(x, ...) {
#'
#' @export
get_dim.SpatRaster <- function(x, ...) {
c(x@ptr$ncol(), x@ptr$nrow())
c(terra::ncol(x), terra::nrow(x))
}

#' @rdname get_dim
Expand Down

0 comments on commit 870cc2f

Please sign in to comment.