Description Usage Arguments Details
View source: R/bbox_transform.R
Transform the coordinate reference system of a bounding box
1 | bbox_transform(bbox, crs)
|
bbox |
an sf bbox object. |
crs |
an sf crs expression. A string, an EPSG code, an object created with sf::st_crs() @return a bounding box transformed to the coordinate reference system defined by 'crs' |
sf does not let you transform a bounding box without jumping through some hoops. this function wraps those up.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.