as_proj_area: Summarise a geographic area

Description Usage Arguments Value Examples

View source: R/area.R

Description

The concept of an "area" in PROJ means a geographic one that can span the antimeridian. This function uses some heuristics to find the minimum longitude span of the input (provided that the longitude span is less than 180 degrees). The wk::wk_crs() of the input is considered and the appropriate transform to WGS84 is applied.

Usage

1
as_proj_area(handleable)

Arguments

handleable

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

Value

c(west, south, east, north) in WGS84

Examples

1
2
as_proj_area(wk::rct(-1, -1, 1, 1))
as_proj_area(wk::rct(-179, 179, 1, 1))

paleolimbot/rlibproj documentation built on Jan. 21, 2022, 1:03 p.m.