sgo_lonlat_cart: Geodetic Coordinate System (GCS) in polar coordinates to...

View source: R/sgo_set_gcs.R

sgo_lonlat_cartR Documentation

Geodetic Coordinate System (GCS) in polar coordinates to cartesian coordinates

Description

Converts a GCS expressed in Longitude and Latitude (and Ellipsoid Height) to an Earth-centered Earth-fixed (ECEF) cartesian coordinate system.

Usage

sgo_lonlat_cart(x)

Arguments

x

A sgo_points object with coordinates expressed as Longitude and Latitude (and Ellipsoid Height if they are 3D points).

Details

Currently converts from EPSGs 4258 and 4937 to 4936 or from EPSGs 4326, 4979 to 4978

Value

An object of class sgo_points whose coordinates are defined as a x, y and z cartesian vector.

See Also

sgo_points, sgo_lonlat_bng.

Examples

p <- sgo_points(list(-5.00355049, 56.7968571), epsg=4326)
p.xyz <- sgo_lonlat_cart(p) #Cartesian coordinates

sgo documentation built on Sept. 23, 2022, 5:08 p.m.