Takes a bounding box as an input and outputs a box in the form of a polygon

bb2poly(bb)

Arguments

bb

the bounding box or spatial object that will be used to crop shp

Examples

bb <- structure(c(-1.55080650299106, 53.8040984493515, -1.51186138683098, 53.828874094091), .Dim = c(2L, 2L), .Dimnames = list(c("coords.x1", "coords.x2"), c("min", "max"))) bb1 <- bb2poly(bb) plot(bb1)