Learn R Programming

sgo (version 0.9.2)

sgo_lonlat_cart: 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)

Value

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

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

See Also

sgo_points, sgo_lonlat_bng.

Examples

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

Run the code above in your browser using DataLab