Skip to contents

[Experimental]

bbox_at_distance returns an st_bbox object representing the extent of an axis-aligned bounding box containing the (polygonal approximation of a) a circle at dithance d.

WARNING: current implementation relies on polygon_at_distance which is not robust to cope with circles containing the Poles or crossing the date line.

Usage

bbox_at_distance(geo, d, ...)

Arguments

geo

a geographical position [lon, lat]

d

a distance in Nautical Miles

...

other parameters passed to polygon_at_distance()

Value

an st_bbox object

Examples

if (FALSE) {
fra <- c(8.570556, 50.03333) # Frankfurt Airport (longitude, latitude)
bbox_at_distance(fra, 40)
}