Skip to content

Commit

Permalink
document methods
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Nov 19, 2023
1 parent f2eaf3f commit cac6d32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/rotate.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@ st_rotate.stars = function(.x, lon0, lat0, north = TRUE, ...) {
}
}

#' @name st_rotate
#' @export
st_rotate.sfc = function(.x, lon0, lat0, north = TRUE, ...) {
r = rapply(.x, rotate, how = "replace", lon0 = lon0, lat0 = lat0, north = north)
st_set_crs(r, NA_crs_)
}

#' @name st_rotate
#' @export
st_rotate.sf = function(.x, lon0, lat0, north = TRUE, ...) {
st_set_geometry(.x, st_rotate(st_geometry(.x), lon0, lat0, north))
Expand Down
6 changes: 6 additions & 0 deletions man/st_rotate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cac6d32

Please sign in to comment.