View source: R/aoi_processing.R
validate_poi | R Documentation |
Get a bounding box from an x,y point and desired buffer distance
validate_poi(poi = NULL, product = NULL, buff = 0)
poi |
Numeric; length-2 vector of x, y coordinates or 'sf' style point. |
product |
Character, one of the options from column 'Short_Name' in
|
buff |
Integer, cell buffer around point. Defaults to 0 (single cell). |
sf style bbox or list of same, aligned to requested product, centered on 'point' and extending 'buff' cells away from centre.
This is for buffered data requests around a point.
{
library(slga)
poi <- c(152, -27)
# size 0 = extent of single cell
slga:::validate_poi(poi = poi, product = 'SLPPC', buff = 0)
# size 3 = 7x7 cells (centre cell and 3 in each direction)
slga:::validate_poi(poi = poi, product = 'SLPPC', buff = 3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.