Skip to content

Commit

Permalink
fix: correct as_sf_class handling of crs inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Jan 4, 2024
1 parent 72a6a98 commit b6d623d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/as_sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ as_sf_class <- function(x,
params <- list2(...)

if (!is.null(params[["crs"]])) {
x <- as_crs(x, crs = params[["crs"]])
x <- st_transform_ext(x, crs = params[["crs"]])
}

return(x)
Expand Down

0 comments on commit b6d623d

Please sign in to comment.