2D bounding rectangles

wk_bbox(handleable, ...)

wk_envelope(handleable, ...)

# Default S3 method
wk_bbox(handleable, ...)

# Default S3 method
wk_envelope(handleable, ...)

# S3 method for class 'wk_rct'
wk_envelope(handleable, ...)

# S3 method for class 'wk_crc'
wk_envelope(handleable, ...)

# S3 method for class 'wk_xy'
wk_envelope(handleable, ...)

wk_bbox_handler()

wk_envelope_handler()

Arguments

handleable

A geometry vector (e.g., wkb(), wkt(), xy(), rct(), or sf::st_sfc()) for which wk_handle() is defined.

...

Passed to the wk_handle() method.

Value

A rct() of length 1.

Examples

wk_bbox(wkt("LINESTRING (1 2, 3 5)"))
#> <wk_rct[1]>
#> [1] [1 2 3 5]