Can you help me to convert lla to xyz coordnates.
I am using
earthRadius = 6378.137;
var x = earthRadius * Math.cos(lat)*Math.cos(lon);
var y = earthRadius * Math.cos(lat)*Math.sin(lon);
var z = earthRadius * Math.sin(lat);
this method to convert to xyz coordinates. But it does not give the correct result I want. Earth is defined as wgs84 object.
Complete Coordinate Transformation (python code):
geodetic -> ECEF
(earth centered earth fixed), distances from the center of the earthECEF -> ENU
(East North Up), to obtain local typicalx-y
trajectory:The difference between
geodetic -> ECEF
andECEF -> ENU
is illustrated in the two following figures:and the local east and north coordinate system: