proj_trans: Transform coordinates

Description Usage Arguments Value Examples

View source: R/trans.R

Description

Transform coordinates

Usage

1
proj_trans(pj, coord, direction = "fwd", verbose = FALSE)

Arguments

pj

A PROJ object or definition coerced using as_proj().

coord

A matrix with four columns (x, y, z, t)

direction

One of "fwd", "ident", or "inv".

verbose

Use FALSE to keep log output during transforms. This is usually not what you want, since you might be transforming millions of coordinates (which may result in millions of log messages).

Value

A transformed value of coord

Examples

1
2
3
p <- proj_create_crs_to_crs("OGC:CRS84", "EPSG:3857")
x <- proj_coord(-64, 45)
proj_trans(p, x)

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