bbox_at_distance: Return an axis-aligned bounding box delimiting a circle at...

View source: R/utils-spatial.R

bbox_at_distanceR Documentation

Return an axis-aligned bounding box delimiting a circle at distance d

Description

\lifecycle

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

See Also

Other spatial: bounding_box(), crs_tc(), filter_positions_at_range(), polygon_at_distance(), polygon_from_coords()

Examples

## Not run: 
fra <- c(8.570556, 50.03333) # Frankfurt Airport (longitude, latitude)
bbox_at_distance(fra, 40)

## End(Not run)

euctrl-pru/trrrj documentation built on April 15, 2024, 1:24 p.m.