Description Usage Arguments Value
Convert a bbox to sp::polygon, sp::Polygons, or sp::SpatialPolygons object
1 2 3 | bbox_to_polygon(bb, projstring = "+proj=longlat +datum=WGS84",
id = "bbox", output_class = c("SpatialPolygons", "Polygons",
"Polygon")[1])
|
bb |
numeric, a 4-element bbox vector [left, right, bottom, top] |
projstring |
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.