crs_approx_bbox: Approximate bounding box transform

Description Usage Arguments Value Examples

View source: R/approx-bbox.R

Description

Approximate bounding box transform

Usage

1
2
3
4
5
6
7
8
crs_approx_bbox(
  handleable,
  crs_to,
  crs_from = wk::wk_crs(handleable),
  engine = crs_engine(),
  n = 20,
  ...
)

Arguments

handleable

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

crs_to

Source and destination coordinate reference systems

crs_from

Source and destination coordinate reference systems

engine

A transform engine such as crs_engine_null()

n

The number of points in a grid used to approximate the transform

...

engine-specific transformation options

Value

A wk::rct() representing the transformed bounding box

Examples

1
2
3
4
crs_approx_bbox(
  wk::rct(-180, -1, 180, 1, crs = "OGC:CRS84"), "OGC:CRS84",
  engine = crs_engine_identity()
)

paleolimbot/crs2crs documentation built on Jan. 8, 2022, 6:25 a.m.