Learn R Programming

geoops (version 0.3.0)

geo_bbox_polygon: BBOX polygon

Description

Takes a bbox and returns an equivalent Feature<Polygon>

Usage

geo_bbox_polygon(bbox)

Arguments

bbox

extent in [minX, minY, maxX, maxY] order

Value

Feature<Polygon> a Polygon representation of the bounding box

Examples

Run this code
# NOT RUN {
geo_bbox_polygon(c(0, 0, 10, 10))
geo_bbox_polygon(c(-90, -30, -70, -10))
geo_bbox_polygon(c(0, 0, 10, 10))
# }

Run the code above in your browser using DataLab