R/bbox_polygon.R

Defines functions geo_bbox_polygon

Documented in geo_bbox_polygon

#' BBOX polygon
#'
#' Takes a bbox and returns an equivalent [Feature]<[Polygon]>
#'
#' @export
#' @param bbox extent in `[minX, minY, maxX, maxY]` order
#' @return [Feature]<[Polygon]> a Polygon representation of the bounding box
#' @examples
#' geo_bbox_polygon(c(0, 0, 10, 10))
#' geo_bbox_polygon(c(-90, -30, -70, -10))
#' geo_bbox_polygon(c(0, 0, 10, 10))
geo_bbox_polygon <- function(bbox) {
  bbox_polygon(bbox)
}

Try the geoops package in your browser

Any scripts or data that you put into this service are public.

geoops documentation built on July 1, 2020, 10:39 p.m.