コード例 #1
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(
         self.classof(self.easting,
                      self.northing,
                      h=self.height,
                      conic=self.conic), self, *attrs)
コード例 #2
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)
コード例 #3
0
    def unit(self, ll=None):
        '''Normalize this vector to unit length.

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

           @return: Normalized vector (L{Nvector}).
        '''
        if self._united is None:
            u = Vector3d.unit(self, ll=ll)  # .copy()
            self._united = u._united = _xattrs(u, self, '_h')
        return self._united
コード例 #4
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)
コード例 #5
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)
コード例 #6
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
コード例 #7
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)
コード例 #8
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self.classof(self.lat, self.lon),
                    self, '_height', *attrs)
コード例 #9
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Make copy with add'l, subclass attributes.
     '''
     return _xattrs(self._xcopy2(self.classof), self, *attrs)
コード例 #10
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)