forward (self,
latlonh,
lon=None,
height=0,
M=False,
name='')
|
|
Convert geodetic (lat, lon, height) to
local cartesian (x, y, z) .
- Arguments:
latlonh - Either a LatLon , a Ltp, an Ecef9Tuple or scalar (geodetic)
latitude (degrees ).
lon - Optional scalar (geodetic) longitude for
scalar latlonh
(degrees ).
height - Optional height (meter ), vertically above (or below)
the surface of the ellipsoid.
M - Optionally, return the rotation EcefMatrix (bool ).
name - Optional name (str ).
- Returns:
- A Local9Tuple
(x, y, z, lat, lon, height,
ltp, ecef, M) with local x ,
y , z , geodetic
(lat , lon , height , this
ltp , ecef (Ecef9Tuple) with geocentric
x , y , z (and
geodetic lat , lon ,
height ) and the concatenated rotation matrix
M (EcefMatrix) if requested.
- Raises:
LocalError - If latlonh not scalar ,
LatLon , Ltp, Ecef9Tuple or invalid or if
lon not scalar for
scalar latlonh or invalid or if
height invalid.
|