transformCRS.3d: Transform coordinates reference system (CRS) of a 3-D track

Description Usage Arguments Value Examples

View source: R/sfWrapper3D.R

Description

Attention: Please use this function for CRS transformations, since it is based on the st_transform from the sf package and therefore supports CRS transformations in 3-D. Note: spTransform from the sp package only supports transformations in the 2D plane, which will cause distortions in the third dimension.

Usage

1
transformCRS.3d(track, fromCRS, toCRS)

Arguments

track

data.frame with x,y,z coordinates

fromCRS

numeric, EPSG code of the current CRS

toCRS

numeric, EPSG code of the CRS to be converted in

Value

A data.frame containing x,y,z and variables.

Examples

1
transformCRS.3d(niclas, fromCRS = 2056, toCRS = 4326)

munterfi/eRTG3D documentation built on Feb. 25, 2022, noon