Get the box in the osmdata format.

drt_osm_bb(aoi)

Arguments

aoi,

spatial object, object to retreive the bounding box from.

Value

A matrix conaining the bbox in osmdata format.

Examples

# Example data aoi <- sf::st_read(system.file("example.gpkg", package="drtplanr"), layer = "aoi")
#> Reading layer `aoi' from data source `/home/runner/work/_temp/Library/drtplanr/example.gpkg' using driver `GPKG' #> Simple feature collection with 1 feature and 6 fields #> geometry type: POLYGON #> dimension: XY #> bbox: xmin: 7.4947 ymin: 47.0366 xmax: 7.5359 ymax: 47.0599 #> geographic CRS: WGS 84
drt_osm_bb(aoi)
#> min max #> x 7.4947 7.5359 #> y 47.0366 47.0599