Skip to content

Commit bbc2a2f

Browse files
committed
Merge branch 'main' of github.com:r-spatial/sf
2 parents 22689e7 + 2dcbffc commit bbc2a2f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

R/transform.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ st_transform = function(x, crs, ...) UseMethod("st_transform")
8888
#' @name st_transform
8989
#' @export
9090
#' @examples
91-
#' st_transform(st_sf(a=2:1, geom=sfc), "+init=epsg:3857")
91+
#' st_transform(st_sf(a=2:1, geom=sfc), "EPSG:3857")
9292
#' if (sf_extSoftVersion()["GDAL"] >= "3.0.0") {
9393
#' st_transform(sfc, pipeline =
9494
#' "+proj=pipeline +step +proj=axisswap +order=2,1") # reverse axes
@@ -156,7 +156,7 @@ st_transform.sf = function(x, crs = st_crs(x), ...) {
156156
#' @export
157157
#' @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.
158158
#' @examples
159-
#' st_transform(structure(p1, proj4string = "+init=epsg:4326"), "+init=epsg:3857")
159+
#' st_transform(structure(p1, proj4string = "EPSG:4326"), "EPSG:3857")
160160
st_transform.sfg = function(x, crs = st_crs(x), ...) {
161161
x = st_sfc(x, crs = attr(x, "proj4string"))
162162
if (missing(crs))

man/st_transform.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/crs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (sf_extSoftVersion()["USE_PROJ_H"] == "true" || sf_proj_info("have_datum_file
4242
}
4343

4444
if (suppressPackageStartupMessages(require(sp, quietly = TRUE))) {
45-
x0 = sp::CRS("+init=epsg:4326")
45+
x0 = sp::CRS("EPSG:4326")
4646
cat(sp::wkt(x0), "\n")
4747
x = st_crs(x0)
4848
print(x)

tests/empty.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ all.equal(x, y)
101101
# https://github.com/edzer/sfr/issues/398 :
102102
pt = st_sfc(st_point(c(0,92)), crs = 4267)
103103
robin_crs <- "+proj=robin +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
104-
# india_crs <- "+init=epsg:24383" # India-centered Lambert conformal conic projection
104+
# india_crs <- "EPSG:24383" # India-centered Lambert conformal conic projection
105105
india_crs <- "+proj=lcc +lat_1=12 +lat_0=12 +lon_0=80 +k_0=0.99878641 +x_0=2743195.5 +y_0=914398.5 +a=6377299.151 +b=6356098.145120132 +towgs84=295,736,257,0,0,0,0 +units=m +no_defs"
106106
st_transform(st_transform(pt, robin_crs), india_crs)[[1]]

0 commit comments

Comments
 (0)