Skip to content

Commit

Permalink
update EPSG code in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kadyb authored Jun 10, 2024
1 parent 913edae commit b4b29cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/transform.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ st_transform = function(x, crs, ...) UseMethod("st_transform")
#' @name st_transform
#' @export
#' @examples
#' st_transform(st_sf(a=2:1, geom=sfc), "+init=epsg:3857")
#' st_transform(st_sf(a=2:1, geom=sfc), "EPSG:3857")
#' if (sf_extSoftVersion()["GDAL"] >= "3.0.0") {
#' st_transform(sfc, pipeline =
#' "+proj=pipeline +step +proj=axisswap +order=2,1") # reverse axes
Expand Down Expand Up @@ -156,7 +156,7 @@ st_transform.sf = function(x, crs = st_crs(x), ...) {
#' @export
#' @details The \code{st_transform} method for \code{sfg} objects assumes that the CRS of the object is available as an attribute of that name.
#' @examples
#' st_transform(structure(p1, proj4string = "+init=epsg:4326"), "+init=epsg:3857")
#' st_transform(structure(p1, proj4string = "+init=epsg:4326"), "EPSG:3857")
st_transform.sfg = function(x, crs = st_crs(x), ...) {
x = st_sfc(x, crs = attr(x, "proj4string"))
if (missing(crs))
Expand Down

0 comments on commit b4b29cb

Please sign in to comment.