transformCRS.3d {eRTG3D} | R Documentation |
Transform coordinates reference system (CRS) of a 3-D track
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
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
transformCRS.3d(niclas, fromCRS = 2056, toCRS = 4326)
[Package eRTG3D version 0.7.0 Index]