
Reproject a spatial object between CRS (4326 <-> 3857)
Source:R/spatial_object.R
morie_spatial_transform.RdImplements the Web-Mercator forward and inverse transforms exactly, so a round trip recovers the original coordinates. Attribute data and (the updated) CRS metadata are preserved.
Examples
s <- morie_spatial(data.frame(lon = -79, lat = 43))
morie_spatial_transform(s, 3857)
#> <morie_spatial> n=1 EPSG:3857 (metres)