r-spatial / sf

Simple Features for R
https://r-spatial.github.io/sf/
Other
1.33k stars 294 forks source link

Update example in `st_transform()`? #2402

Closed kadyb closed 3 months ago

kadyb commented 3 months ago

https://github.com/r-spatial/sf/blob/913edaeb16dd139677f8e3875b63226bb637cdeb/R/transform.R#L91

Should the EPSG code in this example be updated from "+init=epsg:3857" to "EPSG:3857"? As

Warning message:
In CPL_crs_from_input(x) :
  GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.
edzer commented 3 months ago

Definitely!