Description Usage Arguments Value
Convert a bbox to sp::polygon, sp::Polygons, or sp::SpatialPolygons object
1 2 3 4 5 6 | bbox_to_polygon(
bb = c(-153.681, -48.59701, 11.37212, 62.08712),
proj = "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0",
id = "bbox",
output_class = c("SpatialPolygons", "Polygons", "Polygon")[1]
)
|
bb |
numeric, a 4-element bbox vector [left, right, bottom, top] |
proj |
character sutiable to pass to |
id |
character, the polygon ID, by default 'bbox' |
output_class |
character, either "SpatialPolygons", "Polygons" or "Polygon" |
sp::SpatialPolygons object or NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.