getBBox | R Documentation |
Function to get a sf::bbox object based on another object.
getBBox(obj, crs = NULL)
obj |
|
crs |
|
obj=NULL returns a bbox for the Earth in degrees, with WGS84 as crs. Otherwise, obj can be:
a 4-element vector with values xmin, ymin, xmax, ymax
a 2x2 matrix with xmin, ymin on first row, xmax, ymax on second row
a list with sub-list elements bottomleft=c(xmin,ymin)
and topright=c(xmax,ymax)
an object on which sf::st_bbox(obj)
can be called
crs
is ignored unless obj is a vector, matrix or a list; it is taken directly from obj
.
a sf::bbox object (numeric vector of class "bbox" with xmin, ymin, xmax, ymax and a sf::crs as an attribute)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.