Example #1
0
 def _update(self, updated, *attrs):
     '''(INTERNAL) Zap cached attributes if updated.
     '''
     if updated:
         LatLonBase._update(self, updated, '_etm', '_lcc', '_osgr', '_ups',
                            '_utm', '_wm', '_3xyz', *attrs)
         if self._elevation2:
             self._elevation2 = ()
         if self._geoidHeight2:
             self._geoidHeight2 = ()
Example #2
0
    def _update(self, updated, *attrs, **kwds):  # PYCHOK _Nv=None
        '''(INTERNAL) Zap cached attributes if updated.

           @see: C{ellipsoidalNvector.LatLon} and C{sphericalNvector.LatLon}
                 for the special case of B{C{_Nv}}.
        '''
        if updated:
            _Nv = _xkwds_pop(kwds, _Nv=None)
            if _Nv is not None:
                if _Nv._fromll is not None:
                    _Nv._fromll = None
                self._Nv = None
            LatLonBase._update(self, updated, *attrs)
Example #3
0
 def _update(self, updated):
     if updated:  # reset cached attrs
         self._etm = self._lcc = self._osgr = self._ups = \
                     self._utm = self._wm = self._3xyz = None
         self._elevation2 = self._geoidHeight2 = ()
         LatLonBase._update(self, updated)