Transform or convert coordinates of a simple feature or bounding box object
Source:R/st_transform_ext.R
st_transform_ext.RdTake a sf, sfc, or bbox object and transform to coordinate reference
system to match the object provided to crs.
Arguments
- x
An
sf,sfc, orbboxobject, a list of sf objects.- crs
A character or numeric reference to a coordinate reference system supported by
sf::st_crs()or anothersf,sfc, orbboxobject that is used to provide crs.- class
Class of object to return (
sforbbox). If x is an sf list, the returned object remains a list but may be converted tobboxif class = "sf".- rotate
If rotate is greater or less than 0, st_transform_ext calls st_omerc and returns an object with the oblique mercator projection passing the value of rotate to the gamma parameter of the projection. rotate must be between -45 and 45 degrees.