예제 #1
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self.classof(self.zone, self.en100k,
                                 self.easting, self.northing,
                                 band=self.band, datum=self.datum),
                    self, *attrs)
예제 #2
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(
         self.classof(self.easting,
                      self.northing,
                      h=self.height,
                      cs0=self.cs0), self, *attrs)
예제 #3
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self.classof(self.pole, self.easting, self.northing,  # PYCHOK pole
                                 band=self.band, datum=self.datum,
                                 convergence=self.convergence,
                                 scale=self.scale),
                    self, *attrs)
예제 #4
0
    def unit(self, ll=None):
        '''Normalize this vector to unit length.

           @keyword ll: Optional, original latlon (C{LatLon}).

           @return: Normalized vector (C{Nvector}).
        '''
        if self._united is None:
            u = Vector3d.unit(self, ll=ll)  # .copy()
            self._united = u._united = _xattrs(u, self, '_h')
        return self._united
예제 #5
0
 def _latlon5(self, LatLon):
     '''(INTERNAL) Convert cached LatLon
     '''
     ll = self._latlon
     if LatLon is None:
         r = LatLonDatum5Tuple(ll.lat, ll.lon, ll.datum, ll.convergence,
                               ll.scale)
     elif issubclassof(LatLon, _LLEB):
         r = _xattrs(LatLon(ll.lat, ll.lon, datum=ll.datum), ll,
                     '_convergence', '_scale')
     else:
         raise TypeError('%s not ellipsoidal: %r' % ('LatLon', LatLon))
     return _xnamed(r, ll.name)
예제 #6
0
 def _latlon5(self, LatLon):
     '''(INTERNAL) Convert cached LatLon
     '''
     ll = self._latlon
     if LatLon is None:
         r = LatLonDatum5Tuple(ll.lat, ll.lon, ll.datum, ll.convergence,
                               ll.scale)
     elif issubclassof(LatLon, _LLEB):
         r = _xattrs(LatLon(ll.lat, ll.lon, datum=ll.datum), ll,
                     '_convergence', '_scale')
     else:
         raise _IsNotError(_LLEB.__name__, LatLon=LatLon)
     return _xnamed(r, ll.name)
예제 #7
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self.classof(self.lat0, self.lon0, datum=self.datum),
                    self, *attrs)
예제 #8
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self._xcopy2(self.classof), self, *attrs)
예제 #9
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self.classof(self.easting, self.northing), self,
                    '_datum', '_latlon', *attrs)
예제 #10
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     c = Conic(None, 0, name=self._name)
     self._dup2(c)
     return _xattrs(c, self, *attrs)
예제 #11
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self.classof(self.x, self.y, self.z), self, '_length',
                    '_united', *attrs)  # _crosserrors
예제 #12
0
파일: bases.py 프로젝트: mhuyha/PyGeodesy
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self.classof(self.lat, self.lon), self, '_height',
                    *attrs)