View source: R/inflate_bounds.R
inflate_bbox | R Documentation |
generate a bounding box based on a sf/sp (readable) object
inflate_bbox(sp_obj, value, wgs = TRUE)
sp_obj |
Either an sf object or an sf-readable file. See sf::st_drivers() for available drivers. used as the basis for the bounding box. |
value |
A numeric distance (in the units of the spatial object) to inflate the bounds by. |
wgs |
Boolean to determine if box should be defined in WGS84 CRS. default is TRUE as this plays more nicely with ggspatial... |
object of class "bbox" containing the spatial coordinates of a bounding area
# generate inflated (by 10m) bounding box for ROBT feeding signs
inflate_bbox(RivOtter_FeedSigns, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.