crs_trans_explicit: Transform using explicit coordinate values

Description Usage Arguments Examples

View source: R/trans-explicit.R

Description

A wk_trans implementation that replaces coordinate values using a vector of pre-calculated coordinates. This is used to perform generic transforms using R functions and system calls that are impossible or impractical to implement at the C level.

Usage

1
crs_trans_explicit(value, use_z = NA, use_m = NA)

Arguments

value

A vector of coordinates as a wk::xy() used to replace each coordinate in the input in the order it is encountered.

use_z

Used to declare the output type. Use TRUE to ensure the output has that dimension, FALSE to ensure it does not, and NA to leave the dimension unchanged.

use_m

Used to declare the output type. Use TRUE to ensure the output has that dimension, FALSE to ensure it does not, and NA to leave the dimension unchanged.

Examples

1
2
trans <- crs_trans_explicit(wk::xy(1:5, 1:5))
wk::wk_transform(rep(wk::xy(0, 0), 5), trans)

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