st_transform_ext: Transform or convert coordinates of a simple feature or...

View source: R/st_transform_ext.R

st_transform_extR Documentation

Transform or convert coordinates of a simple feature or bounding box object

Description

Take a sf, sfc, or bbox object and transform to coordinate reference system to match the object provided to crs.

Usage

st_transform_ext(x = NULL, crs = NULL, class = NULL, rotate = 0)

st_omerc(x, rotate = 0)

Arguments

x

An sf, sfc, or bbox object, a list of sf objects.

crs

A character or numeric reference to a coordinate reference system supported by sf::st_crs() or another sf, sfc, or bbox object that is used to provide crs.

class

Class of object to return (sf or bbox). If x is an sf list, the returned object remains a list but may be converted to bbox if 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.

Value

An sf, sfc, or bbox object transformed to a new coordinate reference system.

See Also

sf::st_transform(),sf::st_crs()


elipousson/overedge documentation built on Aug. 13, 2022, 7:41 p.m.