Beispiel #1
0
 def _toLLh(self, LL, height, **kwds):
     '''(INTERNAL) Helper for I{subclass.toLatLon}.
     '''
     a, b = Vector3d.to2ll(self)
     h = self.h if height is None else height
     return (a, b, h) if LL is None else _xnamed(LL(a, b, height=h, **kwds),
                                                 self.name)
Beispiel #2
0
    def to3llh(self):
        '''Convert this n-vector to (geodetic) lat-, longitude
           and height.

           @return: 3-Tuple (lat, lon, height) in (C{degrees90},
                    C{degrees180}, C{meter}).
        '''
        return Vector3d.to2ll(self) + (self.h, )
Beispiel #3
0
 def _to3LLh(self, LL, height, **kwds):
     '''(INTERNAL) Helper for C{subclass.toLatLon} and C{.to3llh}.
     '''
     h = self.h if height is None else height
     r = Vector3d.to2ll(self)  # LatLon2Tuple
     if LL is None:
         r = r._3Tuple(h)  # already ._xnamed
     else:
         r = self._xnamed(LL(r.lat, r.lon, height=h, **kwds))
     return r