Skip to content

Commit

Permalink
fixes #248
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Jul 24, 2024
1 parent 3b86533 commit 3ac03ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/s2-options.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ s2_snap_level <- function(level) {
#' @rdname s2_options
#' @export
s2_snap_precision <- function(precision) {
stopifnot(precision <= 1e17) # https://github.com/r-spatial/s2/issues/248
structure(list(exponent = round(log10(precision))), class = "snap_precision")
}

Expand Down

0 comments on commit 3ac03ff

Please sign in to comment.