bounding_box: Calculate the coordinates of the axis-aligned bounding box

View source: R/utils-spatial.R

bounding_boxR Documentation

Calculate the coordinates of the axis-aligned bounding box

Description

\lifecycle

experimental

Calculate a bounding box for a center point given a set of coordinates.

Usage

bounding_box(lat, lon, d)

Arguments

lat

latitude of the center point [decimal degrees].

lon

longitude of the center point [decimal degrees].

d

distance from the center point [Nautical Miles].

Value

Returns a matrix with max/min latitude/longitude values.

References

http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates

See Also

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

Examples

## Not run: 
bounding_box(38.8977, 77.0366, 1)

## End(Not run)

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