transformCRS | R Documentation |
Function to transform a spatial dataset to a different coordinate reference system.
transformCRS(layer, toCRS)
layer |
|
toCRS |
|
If layer
is an object of class sf, sfc, or sfg, then toCRS
should be convertible to an sf::crs object via get_crs(toCRS)
.
if layer
is a sf::bbox
object, the bbox is transformed using
transformBBox
.
#–If layer
is an object of class Spatial, then toCRS
should be convertible to an sp::CRS object via get_spCRS(toCRS)
.
spatial layer of same type as input (sf or sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.