local2latlon
将当地的笛卡尔坐标转换为地理坐标
Description
[
converts point locations given bylat
,lon
,alt
] = local2latlon(xEast
,yNorth
,zUp
,origin
)xEast
,yNorth
, andzUp
from local Cartesian coordinates to geographic coordinates returned aslat
,lon
, andalt
.origin
specifies the anchor of the local coordinate system as a three-element vector of the form [latOrigin,腿,altOrigin]. Local coordinatesxEast
,yNorth
, andzUp
align with the east, north, and up directions, respectively.alt
andaltOriginare altitudes as typically returned by GPS sensors.
Examples
Input Arguments
Output Arguments
Tips
The latitude and longitude of the geographic coordinate system use the WGS84 standard that is commonly used by GPS receivers.
This function defines altitude as the height, in meters, above the WGS84 reference ellipsoid.
Some GPS receivers use standards other than WGS84. Conversions using other ellipsoids are available in the Mapping Toolbox. This function addresses the most common conversion between geographic locations and Cartesian coordinates used by the on-board sensors of a vehicle.